mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-14 13:33:48 +00:00
mode7: rasterbars: speed up by not drawing transparent
This commit is contained in:
parent
4f5f6d08d2
commit
f57854e43a
@ -80,21 +80,25 @@ init_rows:
|
|||||||
|
|
||||||
ldy #(NUM_ROWS-1) ; 2
|
ldy #(NUM_ROWS-1) ; 2
|
||||||
draw_rows_loop:
|
draw_rows_loop:
|
||||||
lda row_color,Y
|
lda row_color,Y ; 5
|
||||||
sta COLOR
|
beq draw_rows_skip ; skip if black ; 2nt/3
|
||||||
|
|
||||||
tya
|
sta COLOR ; 3
|
||||||
pha
|
|
||||||
asl
|
|
||||||
|
tya ; 2
|
||||||
|
pha ; 3
|
||||||
|
asl ; 2
|
||||||
|
|
||||||
ldy #39 ; 2
|
ldy #39 ; 2
|
||||||
sty V2 ; 3
|
sty V2 ; 3
|
||||||
ldy #0 ; 2
|
ldy #0 ; 2
|
||||||
jsr hlin_double ; hlin y,V2 at A ; 63+(X*16)
|
jsr hlin_double ; hlin y,V2 at A ; 63+(X*16)
|
||||||
pla ; 4
|
pla ; 4
|
||||||
tay
|
tay ; 2
|
||||||
dey
|
draw_rows_skip:
|
||||||
bpl draw_rows_loop
|
dey ; 2
|
||||||
|
bpl draw_rows_loop ; 2
|
||||||
|
|
||||||
|
|
||||||
;==================
|
;==================
|
||||||
@ -108,6 +112,9 @@ draw_rows_loop:
|
|||||||
; delay?
|
; delay?
|
||||||
;==================
|
;==================
|
||||||
|
|
||||||
|
lda #100
|
||||||
|
jsr WAIT
|
||||||
|
|
||||||
|
|
||||||
;==================
|
;==================
|
||||||
; update y pointer
|
; update y pointer
|
||||||
@ -133,7 +140,7 @@ not_there:
|
|||||||
;===================
|
;===================
|
||||||
; color in A
|
; color in A
|
||||||
; Y=offset
|
; Y=offset
|
||||||
; Y preserved
|
; Y incremented
|
||||||
; A, X trashed
|
; A, X trashed
|
||||||
|
|
||||||
set_row_color:
|
set_row_color:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user