From: beeanyew Date: Fri, 18 Jun 2021 15:32:32 +0000 (+0200) Subject: Add some Mac thing to enable/disable ROM overlay X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ae4e0ae9f15aa9f66d74518149687dde39f84c2d;p=pistorm Add some Mac thing to enable/disable ROM overlay --- diff --git a/emulator.c b/emulator.c index 0ea23f0..d70ad21 100644 --- a/emulator.c +++ b/emulator.c @@ -971,6 +971,19 @@ unsigned int m68k_read_memory_32(unsigned int address) { static inline int32_t platform_write_check(uint8_t type, uint32_t addr, uint32_t val) { switch (cfg->platform->id) { + case PLATFORM_MAC: + switch (addr) { + case 0xEFFFFE: // VIA1? + if (val & 0x10 && !ovl) { + ovl = 1; + printf("[MAC] OVL on.\n"); + } else if (ovl) { + ovl = 0; + printf("[MAC] OVL off.\n"); + } + break; + } + break; case PLATFORM_AMIGA: switch (addr) { case CIAAPRA: