1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-21 23:29:16 +00:00

Remove unnecessary zero page code

This is handled in the zp_read/write functions in apple2.mem.c
This commit is contained in:
Peter Evans 2018-03-26 20:59:24 -05:00
parent d9be1d6ab2
commit 8aef335f25

View File

@ -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