Implemented the OPTi 495 A20 state switch (register 0x27 bit 7), fixes the A20 gate stuck error.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user