Completed add, sub, cmp and jump simulations
This commit is contained in:
17
8086_sim/include/flag_access.h
Normal file
17
8086_sim/include/flag_access.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef FLAG_ACCESS_H
|
||||
#define FLAG_ACCESS_H
|
||||
|
||||
#include "aliases.h"
|
||||
|
||||
enum flag_access : u8 {
|
||||
FLAG_ZERO,
|
||||
FLAG_SIGN,
|
||||
|
||||
FLAG_COUNT
|
||||
};
|
||||
|
||||
bool get_flag(flag_access flag);
|
||||
void set_flags(u16 value);
|
||||
void print_flags();
|
||||
|
||||
#endif // !FLAG_ACCESS_H
|
Reference in New Issue
Block a user