Fixed bug in SCAT A20 handling. Patch from Greatpsycho.

This commit is contained in:
SarahW 2016-04-17 15:40:44 +01:00
commit 1fe6233d4c

View file

@ -29,7 +29,7 @@ void scat_shadow_state_update()
} }
else else
{ {
if ((scat_regs[0x49] >> ((i - 8) >> 1)) & 1) if ((scat_regs[SCAT_RAM_WRITE_PROTECT] >> ((i - 8) >> 1)) & 1)
{ {
val |= MEM_WRITE_DISABLED; val |= MEM_WRITE_DISABLED;
} }
@ -200,7 +200,7 @@ void scat_write(uint16_t port, uint8_t val, void *priv)
break; break;
case 0x92: case 0x92:
if ((mem_a20_key ^ val) & 2) if ((mem_a20_alt ^ val) & 2)
{ {
mem_a20_alt = val & 2; mem_a20_alt = val & 2;
mem_a20_recalc(); mem_a20_recalc();