summaryrefslogtreecommitdiff
path: root/m68k_core_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-12-29 23:08:39 -0800
committerMichael Pavone <pavone@retrodev.com>2014-12-29 23:08:39 -0800
commitc61ca95add7b82aadef09aea8b4c48774e079069 (patch)
tree7710ffc0c0f1a5d86949af8171558dbc434ddc91 /m68k_core_x86.c
parentc6beba019312aaaf7bd8718bb239b7c632477852 (diff)
Fix handling of code writes for Z80 core. This seems to get things close to being back to where they were before the big refactor that broke the Z80 core. Some problems remain. Notably the sound driver in Sonic 2 is still quite broken.
Diffstat (limited to 'm68k_core_x86.c')
-rw-r--r--m68k_core_x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/m68k_core_x86.c b/m68k_core_x86.c
index d4e0a1c..7e97886 100644
--- a/m68k_core_x86.c
+++ b/m68k_core_x86.c
@@ -2237,6 +2237,7 @@ void init_m68k_opts(m68k_options * opts, memmap_chunk * memmap, uint32_t num_chu
opts->gen.bus_cycles = BUS;
opts->gen.mem_ptr_off = offsetof(m68k_context, mem_pointers);
opts->gen.ram_flags_off = offsetof(m68k_context, ram_code_flags);
+ opts->gen.ram_flags_shift = 11;
for (int i = 0; i < 8; i++)
{
opts->dregs[i] = opts->aregs[i] = -1;