comparison 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
comparison
equal deleted inserted replaced
619:3072fb746601 620:9d6fed6501ba
1905 options->gen.address_mask = 0xFFFF; 1905 options->gen.address_mask = 0xFFFF;
1906 options->gen.max_address = 0x10000; 1906 options->gen.max_address = 0x10000;
1907 options->gen.bus_cycles = 3; 1907 options->gen.bus_cycles = 3;
1908 options->gen.mem_ptr_off = offsetof(z80_context, mem_pointers); 1908 options->gen.mem_ptr_off = offsetof(z80_context, mem_pointers);
1909 options->gen.ram_flags_off = offsetof(z80_context, ram_code_flags); 1909 options->gen.ram_flags_off = offsetof(z80_context, ram_code_flags);
1910 options->gen.ram_flags_shift = 7;
1910 1911
1911 options->flags = 0; 1912 options->flags = 0;
1912 options->regs[Z80_B] = BH; 1913 options->regs[Z80_B] = BH;
1913 options->regs[Z80_C] = RBX; 1914 options->regs[Z80_C] = RBX;
1914 options->regs[Z80_D] = CH; 1915 options->regs[Z80_D] = CH;