fix bank switch on xl/xe

was accidentally enabling basic rom :D

5m46s - 11.759 ms/px - 800xl
5m30s - 11.215 ms/px - 130xe
This commit is contained in:
Brooke Vibber 2024-12-30 03:56:35 -08:00
parent acac5a8df4
commit 70d2c91f03

View file

@ -397,11 +397,11 @@ viewport_oy:
;.align 256 ; warning - if not aligned this will cost an extra cycle sometimes
bank_switch_table:
.repeat 256, i
.byte ((i & $c0) >> 4) | $e1
.byte ((i & $c0) >> 4) | $e3
.endrepeat
.macro bank_switch bank
lda #((bank << 2) | $e1)
lda #((bank << 2) | $e3)
sta PORTB
.endmacro