1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-30 06:29:48 +00:00

The on/off switch for BANK_ALTZP was mixed up

This commit is contained in:
Peter Evans 2018-04-16 22:28:24 -05:00
parent 573a276948
commit 9ac85cb30b

View File

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