diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-12-29 23:08:39 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-12-29 23:08:39 -0800 |
commit | c61ca95add7b82aadef09aea8b4c48774e079069 (patch) | |
tree | 7710ffc0c0f1a5d86949af8171558dbc434ddc91 /z80_to_x86.c | |
parent | c6beba019312aaaf7bd8718bb239b7c632477852 (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 'z80_to_x86.c')
-rw-r--r-- | z80_to_x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c index c785e8a..bb701a6 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -1907,6 +1907,7 @@ void init_x86_z80_opts(z80_options * options, memmap_chunk const * chunks, uint3 options->gen.bus_cycles = 3; options->gen.mem_ptr_off = offsetof(z80_context, mem_pointers); options->gen.ram_flags_off = offsetof(z80_context, ram_code_flags); + options->gen.ram_flags_shift = 7; options->flags = 0; options->regs[Z80_B] = BH; |