Add some Mac thing to enable/disable ROM overlay

This commit is contained in:
beeanyew 2021-06-18 17:32:32 +02:00 committed by Rune Holm
parent e01f68fd4f
commit ae4e0ae9f1

View File

@ -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: