pt3_player: optimize clear_screens

This commit is contained in:
Peter Ferrie 2019-06-07 21:30:56 -04:00 committed by Vince Weaver
parent 8168a2721f
commit 1c5c19656e

View File

@ -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