summaryrefslogtreecommitdiff
path: root/blastem.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2014-02-11 21:53:31 -0800
committerMike Pavone <pavone@retrodev.com>2014-02-11 21:53:31 -0800
commit5f77a699631ee74a6c1876ad2727e876b923e202 (patch)
tree65b8a1b5069a4d6cd83d9a3d550e059bb8c8d9b5 /blastem.h
parent90f9f11749badf66785b6fb416d25e72cdc32c2d (diff)
Move debugging code outside of main source file
Diffstat (limited to 'blastem.h')
-rw-r--r--blastem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/blastem.h b/blastem.h
index ff05a69..112ebfa 100644
--- a/blastem.h
+++ b/blastem.h
@@ -45,6 +45,14 @@ extern tern_node * config;
extern uint8_t busreq;
extern uint8_t reset;
+#define CARTRIDGE_WORDS 0x200000
+#define RAM_WORDS 32 * 1024
+#define Z80_RAM_BYTES 8 * 1024
+
+extern uint16_t cart[CARTRIDGE_WORDS];
+extern uint16_t ram[RAM_WORDS];
+extern uint8_t z80_ram[Z80_RAM_BYTES];
+
uint16_t read_dma_value(uint32_t address);
m68k_context * debugger(m68k_context * context, uint32_t address);
void set_speed_percent(genesis_context * context, uint32_t percent);