diff z80_to_x86.c @ 620:9d6fed6501ba

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.
author Michael Pavone <pavone@retrodev.com>
date Mon, 29 Dec 2014 23:08:39 -0800
parents f0061e3d2ad9
children f822d9216968
line wrap: on
line diff
--- a/z80_to_x86.c	Mon Dec 29 21:36:17 2014 -0800
+++ b/z80_to_x86.c	Mon Dec 29 23:08:39 2014 -0800
@@ -1907,6 +1907,7 @@
 	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;