summaryrefslogtreecommitdiff
path: root/gdb_remote.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-12-09 09:48:48 -0800
committerMichael Pavone <pavone@retrodev.com>2016-12-09 09:48:48 -0800
commit818a3ef482b96c0a963bb515291944346586f106 (patch)
treea13839316062ed0986e1b0b8317c6df3e74d7610 /gdb_remote.c
parentaaca957565a13e9f2c6ab5ae085d7c8fb6c0fa85 (diff)
WIP split of ROM loading/argument parsing from Genesis emulation code. Compiles and doesn't crash, but nothing works. Still a few too many globals as well.
Diffstat (limited to 'gdb_remote.c')
-rw-r--r--gdb_remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb_remote.c b/gdb_remote.c
index 6897222..e2b47f0 100644
--- a/gdb_remote.c
+++ b/gdb_remote.c
@@ -168,7 +168,7 @@ void write_byte(m68k_context * context, uint32_t address, uint8_t value)
return;
}
if (address >= 0xA00000 && address < 0xA04000) {
- z80_ram[address & 0x1FFF] = value;
+ gen->zram[address & 0x1FFF] = value;
genesis_context * gen = context->system;
#ifndef NO_Z80
z80_handle_code_write(address & 0x1FFF, gen->z80);