comparison 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
comparison
equal deleted inserted replaced
350:91aa2aa05e68 351:2f264d2a60c2
13 uint8_t output; 13 uint8_t output;
14 uint8_t control; 14 uint8_t control;
15 uint8_t input[3]; 15 uint8_t input[3];
16 } io_port; 16 } io_port;
17 17
18 #define RAM_FLAG_ODD 0x1800
19 #define RAM_FLAG_EVEN 0x1000
20 #define RAM_FLAG_BOTH 0x0000
21
18 typedef struct { 22 typedef struct {
19 m68k_context *m68k; 23 m68k_context *m68k;
20 z80_context *z80; 24 z80_context *z80;
21 vdp_context *vdp; 25 vdp_context *vdp;
22 ym2612_context *ym; 26 ym2612_context *ym;
27 uint8_t *save_ram;
28 uint32_t save_ram_mask;
29 uint32_t save_flags;
30 uint8_t bank_regs[8];
23 } genesis_context; 31 } genesis_context;
24 32
25 #define GAMEPAD_TH0 0 33 #define GAMEPAD_TH0 0
26 #define GAMEPAD_TH1 1 34 #define GAMEPAD_TH1 1
27 #define GAMEPAD_EXTRA 2 35 #define GAMEPAD_EXTRA 2