Mercurial > repos > blastem
comparison m68k_core_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 | 5a6ff0d76032 |
children | a18e3923481e |
comparison
equal
deleted
inserted
replaced
619:3072fb746601 | 620:9d6fed6501ba |
---|---|
2235 opts->gen.byte_swap = 1; | 2235 opts->gen.byte_swap = 1; |
2236 opts->gen.max_address = 0x1000000; | 2236 opts->gen.max_address = 0x1000000; |
2237 opts->gen.bus_cycles = BUS; | 2237 opts->gen.bus_cycles = BUS; |
2238 opts->gen.mem_ptr_off = offsetof(m68k_context, mem_pointers); | 2238 opts->gen.mem_ptr_off = offsetof(m68k_context, mem_pointers); |
2239 opts->gen.ram_flags_off = offsetof(m68k_context, ram_code_flags); | 2239 opts->gen.ram_flags_off = offsetof(m68k_context, ram_code_flags); |
2240 opts->gen.ram_flags_shift = 11; | |
2240 for (int i = 0; i < 8; i++) | 2241 for (int i = 0; i < 8; i++) |
2241 { | 2242 { |
2242 opts->dregs[i] = opts->aregs[i] = -1; | 2243 opts->dregs[i] = opts->aregs[i] = -1; |
2243 } | 2244 } |
2244 #ifdef X86_64 | 2245 #ifdef X86_64 |