mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-01-13 15:18:06 +00:00
Add some Mac thing to enable/disable ROM overlay
This commit is contained in:
parent
e01f68fd4f
commit
ae4e0ae9f1
13
emulator.c
13
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user