Implemented the OPTi 495 A20 state switch (register 0x27 bit 7), fixes the A20 gate stuck error.

This commit is contained in:
OBattler
2018-01-02 21:35:25 +01:00
parent b6be9e7d95
commit 412ae3726b

View File

@@ -292,6 +292,12 @@ static void opti495_write(uint16_t addr, uint8_t val, void *p)
else
mem_set_mem_state(0xf0000, 0x10000, MEM_READ_EXTERNAL | MEM_WRITE_INTERNAL);
}
if (optireg == 0x27)
{
mem_a20_key = (val & 0x80) ? 0x00 : 0x02;
mem_a20_recalc();
flushmmucache();
}
}
break;
}