Smarter bittable generation (thanks @jhusak)

This commit is contained in:
Pecusx
2023-06-21 14:06:26 +02:00
parent 189d3ed593
commit 7eef3851e7
6 changed files with 16 additions and 14 deletions
+7 -6
View File
@@ -756,16 +756,17 @@ loop sta (temp),y
iny
cpy #screenheight+1
bne @-
; and bittables for fastes plot and point
; and bittables for fastest plot and point (thanks @jhusak)
ldy #0
@ tya
and #%00000111
tax
lda bittable,x
lda #$40
@ asl
adc #0
sta bittable1_long,y
tax
eor #%11111111
sta bittable2_long,y
iny
txa
dey
bne @-
rts
.endp
+7 -6
View File
@@ -659,16 +659,17 @@ next8lines
iny
cpy #screenheight+1
bne @-
; and bittables for fastes plot and point
; and bittables for fastest plot and point (thanks @jhusak)
ldy #0
@ tya
and #%00000111
tax
lda bittable,x
lda #$40
@ asl
adc #0
sta bittable1_long,y
tax
eor #%11111111
sta bittable2_long,y
iny
txa
dey
bne @-
rts
.endp
+2 -2
View File
@@ -200,8 +200,8 @@ sintable
; :screenheight+1 .by >(display+screenBytes*#)
;----------------------------
; now long (256 bytes) bittables are generated in RAM based on one bittable:
bittable
.by $80,$40,$20,$10,$08,$04,$02,$01
;bittable
; .by $80,$40,$20,$10,$08,$04,$02,$01
;bittable2
; .by $7f,$bf,$df,$ef,$f7,$fb,$fd,$fe
;----------------------------
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.