summaryrefslogtreecommitdiff
path: root/blastem.h
diff options
context:
space:
mode:
Diffstat (limited to 'blastem.h')
-rw-r--r--blastem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/blastem.h b/blastem.h
index 65be5c2..7a4f707 100644
--- a/blastem.h
+++ b/blastem.h
@@ -15,11 +15,19 @@ typedef struct {
uint8_t input[3];
} io_port;
+#define RAM_FLAG_ODD 0x1800
+#define RAM_FLAG_EVEN 0x1000
+#define RAM_FLAG_BOTH 0x0000
+
typedef struct {
m68k_context *m68k;
z80_context *z80;
vdp_context *vdp;
ym2612_context *ym;
+ uint8_t *save_ram;
+ uint32_t save_ram_mask;
+ uint32_t save_flags;
+ uint8_t bank_regs[8];
} genesis_context;
#define GAMEPAD_TH0 0