Skip to content

Commit

Permalink
Add some Mac thing to enable/disable ROM overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
beeanyew committed Jun 18, 2021
1 parent 14792d7 commit 5254d4c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions emulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5254d4c

Please sign in to comment.