diff --git a/mandel.s b/mandel.s index 985df82..844a286 100644 --- a/mandel.s +++ b/mandel.s @@ -434,13 +434,16 @@ viewport_oy: sta dest + 1 .endmacro +.segment "TABLES" ; lookup table for top byte -> PORTB value for bank-switch -;.align 256 ; warning - if not aligned this will cost an extra cycle sometimes +.align 256 bank_switch_table: .repeat 256, i .byte ((i & $c0) >> 4) | $e3 .endrepeat +.code + .macro bank_switch bank lda #((bank << 2) | $e3) sta PORTB diff --git a/todo.md b/todo.md index a8675af..4aaedc0 100644 --- a/todo.md +++ b/todo.md @@ -11,6 +11,6 @@ things to try: * 'wide pixels' 2x and 4x for a fuller initial image in the tiered rendering -* extact viewport for display & re-input via keyboard +* extract viewport for display & re-input via keyboard * fujinet screenshot/viewport uploader