X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=emulator.c;fp=emulator.c;h=968f52e7bd430c988034566d401d08039c322d37;hb=16a902fad26ea3f63550af1e4cccd2dac7d7cce3;hp=4d2fc8a37c8036c5044da7bfa66ce8d520dfecc7;hpb=d485267523c5fe4331e00528d23f14711e59327c;p=pistorm diff --git a/emulator.c b/emulator.c index 4d2fc8a..968f52e 100644 --- a/emulator.c +++ b/emulator.c @@ -629,13 +629,10 @@ switch_config: void cpu_pulse_reset(void) { m68ki_cpu_core *state = &m68ki_cpu; ps_pulse_reset(); - if (cfg->platform->handle_reset) - cfg->platform->handle_reset(cfg); - //m68k_write_memory_16(INTENA, 0x7FFF); ovl = 1; - //m68k_write_memory_8(0xbfe201, 0x0001); // AMIGA OVL - //m68k_write_memory_8(0xbfe001, 0x0001); // AMIGA OVL high (ROM@0x0) + if (cfg->platform->handle_reset) + cfg->platform->handle_reset(cfg); m68k_pulse_reset(state); } @@ -954,9 +951,11 @@ static inline int32_t platform_write_check(uint8_t type, uint32_t addr, uint32_t if (val & 0x10 && !ovl) { ovl = 1; printf("[MAC] OVL on.\n"); + handle_ovl_mappings_mac68k(cfg); } else if (ovl) { ovl = 0; printf("[MAC] OVL off.\n"); + handle_ovl_mappings_mac68k(cfg); } break; }