From 9ac85cb30b0b3d1be31522c6dd7bb37285449b58 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Mon, 16 Apr 2018 22:28:24 -0500 Subject: [PATCH] The on/off switch for BANK_ALTZP was mixed up --- src/apple2/bank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apple2/bank.c b/src/apple2/bank.c index 5d4688b..6ee081f 100644 --- a/src/apple2/bank.c +++ b/src/apple2/bank.c @@ -245,13 +245,13 @@ SEGMENT_WRITER(apple2_bank_switch_write) // Turn on auxiliary memory for zero page + stack case 0xC008: apple2_set_bank_switch(mach, - mach->bank_switch | BANK_ALTZP); + mach->bank_switch & ~BANK_ALTZP); break; // Disable auxiliary memory for zero page + stack case 0xC009: apple2_set_bank_switch(mach, - mach->bank_switch & ~BANK_ALTZP); + mach->bank_switch | BANK_ALTZP); break; } }