Optimize Text to HGR address by Mike B to save 1 byte
This commit is contained in:
parent
629866d97f
commit
5122a0aaf9
|
@ -309,10 +309,9 @@ MakeShiftMask
|
||||||
lda zTxtPtr+0 ; every 8 HGR scanline address
|
lda zTxtPtr+0 ; every 8 HGR scanline address
|
||||||
sta zHgrPtr+0 ; is exactly same as Text low byte
|
sta zHgrPtr+0 ; is exactly same as Text low byte
|
||||||
|
|
||||||
lda zTxtPtr+1
|
lda zTxtPtr+1 ; every 8 HGR scanline address
|
||||||
clc ; every 8 HGR scanline address
|
eor #$24 ; is Text Page $04 + $1C = HGR Page $20; CLC, ADC #$1C
|
||||||
adc #$1c ; is Text Page $04 + $1C = HGR Page $20
|
sta zHgrPtr+1 ; but we can optimize for HGR page 1 via EOR #$24 -- Thanks Mike B.!
|
||||||
sta zHgrPtr+1
|
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Copy unpacked buffer to 8 HGR scanlines
|
; Copy unpacked buffer to 8 HGR scanlines
|
||||||
|
|
BIN
ll_6502.dsk
BIN
ll_6502.dsk
Binary file not shown.
Loading…
Reference in New Issue