Mercurial > repos > blastem
diff blastem.h @ 351:2f264d2a60c2
Support for SRAM with SEGA mapper. Half-finished support for SRAM without SEGA mapper.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 21 May 2013 22:08:59 -0700 |
parents | a8ee7934a1f8 |
children | 15dd6418fe67 |
line wrap: on
line diff
--- a/blastem.h Tue May 21 19:26:20 2013 -0700 +++ b/blastem.h Tue May 21 22:08:59 2013 -0700 @@ -15,11 +15,19 @@ 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