diff sms.h @ 1149:6b0da6021544

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
author Michael Pavone <pavone@retrodev.com>
date Wed, 04 Jan 2017 20:43:22 -0800
parents 7e199bebde2f
children aee2177a1630
line wrap: on
line diff
--- a/sms.h	Tue Jan 03 23:03:30 2017 -0800
+++ b/sms.h	Wed Jan 04 20:43:22 2017 -0800
@@ -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 @@
 	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);