summaryrefslogtreecommitdiff
path: root/romdb.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-04 20:43:22 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-04 20:43:22 -0800
commite96ca2a17dc298977d31768226090bc22b0baa5c (patch)
tree7a81bcdb53c31e95da82637ed313015c5f94cd16 /romdb.h
parent7efc7891c5d5c9bc1daf954510f90e79b6db5c75 (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 'romdb.h')
-rw-r--r--romdb.h10
1 files changed, 7 insertions, 3 deletions
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);