From 1c5c19656e1d39af00c62b543f11dad7f1587841 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Fri, 7 Jun 2019 21:30:56 -0400 Subject: [PATCH] pt3_player: optimize clear_screens --- pt3_player/gr_fast_clear.s | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pt3_player/gr_fast_clear.s b/pt3_player/gr_fast_clear.s index f40c807c..2457315a 100644 --- a/pt3_player/gr_fast_clear.s +++ b/pt3_player/gr_fast_clear.s @@ -5,16 +5,14 @@ clear_screens: lda #$0 jsr clear_top - jsr clear_bottom0 + jsr clear_bottoms ;=================================== ; Clear top/bottom of page 1 ;=================================== lda #$4 - jsr clear_top - jmp clear_bottom4 - + ; fall through @@ -85,7 +83,6 @@ clear_bottoms: ; Clear bottom of page 1 ;=================================== -clear_bottom4: lda #$4 ; fall through @@ -96,7 +93,6 @@ clear_bottom4: clear_bottom: sta DRAW_PAGE ; 3 -clear_bottom0: clc ; 2 adc #6 ; 2