From 8aef335f25c9cf04bcb9adc4503d22b38ae5e709 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Mon, 26 Mar 2018 20:59:24 -0500 Subject: [PATCH] Remove unnecessary zero page code This is handled in the zp_read/write functions in apple2.mem.c --- src/apple2.bank.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/apple2.bank.c b/src/apple2.bank.c index d848c1d..c9ff397 100644 --- a/src/apple2.bank.c +++ b/src/apple2.bank.c @@ -54,14 +54,6 @@ SEGMENT_READER(apple2_bank_read) mach = (apple2 *)_mach; - // In the case of bank-switchable memory, BANK_ALTZP is the ultimate - // arbitrator; if it's on, we have to use aux, and if not, we have - // to use main. Whatever the segment was that was passed in will - // turn out to be immaterial. - if ((mach->bank_switch & BANK_ALTZP) && addr < 0x200) { - return mach->aux->memory[addr]; - } - if (~mach->bank_switch & BANK_RAM) { // We need to account for the difference in address location // before we can successfully get any data from ROM. @@ -98,12 +90,6 @@ SEGMENT_WRITER(apple2_bank_write) return; } - // See my spiel in the read bank mapper; the same applies here. - if ((mach->bank_switch & BANK_ALTZP) && addr < 0x200) { - mach->aux->memory[addr] = value; - return; - } - // You will note, if we've gotten here, that it's possible to write // to the bank-switch addresses even if the ROM flag is 1. It's // true! Except that writes never go to ROM. That is to say, it's