mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-27 23:30:56 +00:00
pt3_player: optimize clear_screens
This commit is contained in:
parent
8168a2721f
commit
1c5c19656e
@ -5,16 +5,14 @@ clear_screens:
|
|||||||
|
|
||||||
lda #$0
|
lda #$0
|
||||||
jsr clear_top
|
jsr clear_top
|
||||||
jsr clear_bottom0
|
jsr clear_bottoms
|
||||||
|
|
||||||
;===================================
|
;===================================
|
||||||
; Clear top/bottom of page 1
|
; Clear top/bottom of page 1
|
||||||
;===================================
|
;===================================
|
||||||
|
|
||||||
lda #$4
|
lda #$4
|
||||||
jsr clear_top
|
; fall through
|
||||||
jmp clear_bottom4
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -85,7 +83,6 @@ clear_bottoms:
|
|||||||
; Clear bottom of page 1
|
; Clear bottom of page 1
|
||||||
;===================================
|
;===================================
|
||||||
|
|
||||||
clear_bottom4:
|
|
||||||
lda #$4
|
lda #$4
|
||||||
; fall through
|
; fall through
|
||||||
|
|
||||||
@ -96,7 +93,6 @@ clear_bottom4:
|
|||||||
|
|
||||||
clear_bottom:
|
clear_bottom:
|
||||||
sta DRAW_PAGE ; 3
|
sta DRAW_PAGE ; 3
|
||||||
clear_bottom0:
|
|
||||||
clc ; 2
|
clc ; 2
|
||||||
|
|
||||||
adc #6 ; 2
|
adc #6 ; 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user