diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-04 20:43:22 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-04 20:43:22 -0800 |
commit | e96ca2a17dc298977d31768226090bc22b0baa5c (patch) | |
tree | 7a81bcdb53c31e95da82637ed313015c5f94cd16 /sms.h | |
parent | 7efc7891c5d5c9bc1daf954510f90e79b6db5c75 (diff) |
Don't lock up CPU if performing a read with writes configured when in PBC mode. Allow access to VDP debug commands from Z80 debugger in PBC mode. Handle Mode 4 in VDP debug print functions
Diffstat (limited to 'sms.h')
-rw-r--r-- | sms.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,7 @@ #include "io.h" #define SMS_RAM_SIZE (8*1024) +#define SMS_CART_RAM_SIZE (32*1024) typedef struct { system_header header; @@ -21,6 +22,8 @@ typedef struct { uint32_t normal_clock; uint8_t should_return; uint8_t ram[SMS_RAM_SIZE]; + uint8_t bank_regs[4]; + uint8_t cart_ram[SMS_CART_RAM_SIZE]; } sms_context; sms_context *alloc_configure_sms(void *rom, uint32_t rom_size, void *extra_rom, uint32_t extra_rom_size, uint32_t opts, uint8_t force_region, rom_info *info_out); |