From f42f88c148912378a9891155738212b5eba5e0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Thu, 19 Jan 2017 14:06:19 +0100 Subject: [PATCH] Add status register bits. --- src/rk65c02.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/rk65c02.h b/src/rk65c02.h index b55a9f4..95e7cce 100644 --- a/src/rk65c02.h +++ b/src/rk65c02.h @@ -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 {