mirror of
https://github.com/rkujawa/rk65c02.git
synced 2025-08-10 16:25:40 +00:00
Add status register bits.
This commit is contained in:
@@ -19,6 +19,15 @@ struct reg_state {
|
||||
uint8_t P; /* status */
|
||||
};
|
||||
|
||||
#define P_CARRY 0x1
|
||||
#define P_ZERO 0x2
|
||||
#define P_IRQ_DISABLE 0x4
|
||||
#define P_DECIMAL 0x8
|
||||
#define P_BREAK 0x10
|
||||
#define P_UNDEFINED 0x20
|
||||
#define P_SIGN_OVERFLOW 0x40
|
||||
#define P_NEGATIVE 0x80
|
||||
|
||||
typedef struct reg_state reg_state_t;
|
||||
|
||||
struct rk65c02emu {
|
||||
|
Reference in New Issue
Block a user