From 1fe6233d4c5a1cf0c30337cff49a462c1e31dc67 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 17 Apr 2016 15:40:44 +0100 Subject: [PATCH] Fixed bug in SCAT A20 handling. Patch from Greatpsycho. --- src/scat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scat.c b/src/scat.c index baf3e67..be92eb3 100644 --- a/src/scat.c +++ b/src/scat.c @@ -29,7 +29,7 @@ void scat_shadow_state_update() } else { - if ((scat_regs[0x49] >> ((i - 8) >> 1)) & 1) + if ((scat_regs[SCAT_RAM_WRITE_PROTECT] >> ((i - 8) >> 1)) & 1) { val |= MEM_WRITE_DISABLED; } @@ -200,7 +200,7 @@ void scat_write(uint16_t port, uint8_t val, void *priv) break; case 0x92: - if ((mem_a20_key ^ val) & 2) + if ((mem_a20_alt ^ val) & 2) { mem_a20_alt = val & 2; mem_a20_recalc();