From 3cba3a5ac08c87a0703059d2cae86061f50817bd Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 21 Nov 2020 22:22:27 -0500 Subject: [PATCH] Corrects card mask test outside of bank $00. --- Machines/Apple/AppleIIgs/AppleIIgs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Machines/Apple/AppleIIgs/AppleIIgs.cpp b/Machines/Apple/AppleIIgs/AppleIIgs.cpp index 94855df01..b0ec3bce0 100644 --- a/Machines/Apple/AppleIIgs/AppleIIgs.cpp +++ b/Machines/Apple/AppleIIgs/AppleIIgs.cpp @@ -554,18 +554,18 @@ class ConcreteMachine: // current card mask. size_t card_number = 0; - if(address >= 0xc100) { + if(address_suffix >= 0xc100) { /* Decode the area conventionally used by cards for ROMs: 0xCn00 to 0xCnff: card n. */ - card_number = (address - 0xc000) >> 8; + card_number = (address_suffix - 0xc000) >> 8; } else { /* Decode the area conventionally used by cards for registers: C0n0 to C0nF: card n - 8. */ - card_number = (address - 0xc080) >> 4; + card_number = (address_suffix - 0xc080) >> 4; } const uint8_t permitted_card_mask_ = card_mask_ & 0xf6;