This commit is contained in:
Brooke Vibber 2024-12-26 21:49:13 -08:00
parent e84a990789
commit ee1c268705

View file

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