mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 17:29:49 +00:00
tfv: better clear screen display
This commit is contained in:
parent
d715ee1f10
commit
f8a210ce02
16
tfv/tfv.s
16
tfv/tfv.s
@ -14,22 +14,10 @@
|
||||
; memset()
|
||||
|
||||
;===================================
|
||||
; Clear top/bottom of page 0
|
||||
; Clear top/bottom of page 0 and 1
|
||||
;===================================
|
||||
|
||||
lda #$0
|
||||
sta DRAW_PAGE
|
||||
jsr clear_top
|
||||
jsr clear_bottom
|
||||
|
||||
;===================================
|
||||
; Clear top/bottom of page 1
|
||||
;===================================
|
||||
|
||||
lda #$4
|
||||
sta DRAW_PAGE
|
||||
jsr clear_top
|
||||
jsr clear_bottom
|
||||
jsr clear_screens
|
||||
|
||||
;==========================
|
||||
; Do Opening
|
||||
|
@ -45,6 +45,8 @@ flying_start:
|
||||
|
||||
; Clear screen/pages
|
||||
|
||||
jsr clear_screens
|
||||
|
||||
jsr set_gr_page0
|
||||
|
||||
; Init Variables
|
||||
|
@ -2,6 +2,28 @@
|
||||
;= ROUTINES
|
||||
;=====================================================================
|
||||
|
||||
|
||||
clear_screens:
|
||||
;===================================
|
||||
; Clear top/bottom of page 0
|
||||
;===================================
|
||||
|
||||
lda #$0
|
||||
sta DRAW_PAGE
|
||||
jsr clear_top
|
||||
jsr clear_bottom
|
||||
|
||||
;===================================
|
||||
; Clear top/bottom of page 1
|
||||
;===================================
|
||||
|
||||
lda #$4
|
||||
sta DRAW_PAGE
|
||||
jsr clear_top
|
||||
jsr clear_bottom
|
||||
|
||||
rts
|
||||
|
||||
;==========
|
||||
; page_flip
|
||||
;==========
|
||||
|
Loading…
Reference in New Issue
Block a user