From e96ca2a17dc298977d31768226090bc22b0baa5c Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 4 Jan 2017 20:43:22 -0800 Subject: 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 --- romdb.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'romdb.h') diff --git a/romdb.h b/romdb.h index 846f44a..9a08275 100644 --- a/romdb.h +++ b/romdb.h @@ -13,7 +13,6 @@ #define SAVE_NONE 0xFF #include "tern.h" -#include "backend.h" typedef struct { uint32_t start; @@ -35,7 +34,12 @@ typedef struct { uint8_t latch; } eeprom_state; -typedef struct { + +typedef struct rom_info rom_info; + +#include "backend.h" + +struct rom_info { char *name; memmap_chunk *map; uint8_t *save_buffer; @@ -51,7 +55,7 @@ typedef struct { uint16_t mapper_start_index; uint8_t save_type; uint8_t regions; -} rom_info; +}; tern_node *load_rom_db(); rom_info configure_rom(tern_node *rom_db, void *vrom, uint32_t rom_size, void *lock_on, uint32_t lock_on_size, memmap_chunk const *base_map, uint32_t base_chunks); -- cgit v1.2.3