mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-07-17 02:28:57 +00:00
optimize clear_bottom
This commit is contained in:
parent
85c7341e26
commit
01f3e24e82
@ -15,28 +15,8 @@ clear_screens:
|
|||||||
lda #$4
|
lda #$4
|
||||||
sta DRAW_PAGE
|
sta DRAW_PAGE
|
||||||
jsr clear_top
|
jsr clear_top
|
||||||
jsr clear_bottom
|
jmp clear_bottom
|
||||||
|
|
||||||
rts
|
|
||||||
|
|
||||||
clear_bottoms:
|
|
||||||
;===================================
|
|
||||||
; Clear bottom of page 0
|
|
||||||
;===================================
|
|
||||||
|
|
||||||
lda #$0
|
|
||||||
sta DRAW_PAGE
|
|
||||||
jsr clear_bottom
|
|
||||||
|
|
||||||
;===================================
|
|
||||||
; Clear bottom of page 1
|
|
||||||
;===================================
|
|
||||||
|
|
||||||
lda #$4
|
|
||||||
sta DRAW_PAGE
|
|
||||||
jsr clear_bottom
|
|
||||||
|
|
||||||
rts
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -94,6 +74,22 @@ no_draw_bottom:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
clear_bottoms:
|
||||||
|
;===================================
|
||||||
|
; Clear bottom of page 0
|
||||||
|
;===================================
|
||||||
|
|
||||||
|
lda #$0
|
||||||
|
sta DRAW_PAGE
|
||||||
|
jsr clear_bottom
|
||||||
|
|
||||||
|
;===================================
|
||||||
|
; Clear bottom of page 1
|
||||||
|
;===================================
|
||||||
|
|
||||||
|
lda #$4
|
||||||
|
sta DRAW_PAGE
|
||||||
|
; fall through
|
||||||
|
|
||||||
;=========================================================
|
;=========================================================
|
||||||
; clear_bottom
|
; clear_bottom
|
||||||
@ -143,9 +139,7 @@ clear_screens_notext:
|
|||||||
|
|
||||||
lda #$4
|
lda #$4
|
||||||
sta DRAW_PAGE
|
sta DRAW_PAGE
|
||||||
jsr clear_all
|
; fall through
|
||||||
|
|
||||||
rts
|
|
||||||
|
|
||||||
|
|
||||||
;=========================================================
|
;=========================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user