From 9d475a3ccb5b2e1e206cf4c219ec5984cec3574f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 20 Jul 2015 21:15:34 -0700 Subject: Full support for Sega mapper when it comes to data. Code in remapped sections may not work reliably. SSF2 now works. --- blastem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 7d051b6..43f694d 100644 --- a/blastem.h +++ b/blastem.h @@ -32,6 +32,7 @@ typedef struct { uint32_t frame_end; uint32_t max_cycles; uint8_t bank_regs[8]; + uint16_t mapper_start_index; uint8_t save_type; io_port ports[3]; uint8_t bus_busy; @@ -44,11 +45,10 @@ extern int break_on_sync; extern int save_state; extern tern_node * config; -#define CARTRIDGE_WORDS 0x200000 #define RAM_WORDS 32 * 1024 #define Z80_RAM_BYTES 8 * 1024 -extern uint16_t cart[CARTRIDGE_WORDS]; +extern uint16_t *cart; extern uint16_t ram[RAM_WORDS]; extern uint8_t z80_ram[Z80_RAM_BYTES]; -- cgit v1.2.3