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
1 changed files with 2 additions and 2 deletions

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