shave 3 bytes

This commit is contained in:
4am 2019-09-10 00:24:54 -04:00
parent bc79a08074
commit 7ab4dd136e
2 changed files with 14 additions and 15 deletions

View File

@ -9,7 +9,7 @@
; D000..E4E9 - persistent data structures (gGlobalPrefsStore, gGamesListStore) ; D000..E4E9 - persistent data structures (gGlobalPrefsStore, gGamesListStore)
; ...end of data and start of code are approximate, in between is unused... ; ...end of data and start of code are approximate, in between is unused...
; ...if they ever overlap, things will go boom... ; ...if they ever overlap, things will go boom...
; E9CA..FFF9 - main program code ; E9CD..FFF9 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors ; FFFA..FFFF - NMI, reset, IRQ vectors
; ;
; LC RAM BANK 2 ; LC RAM BANK 2

View File

@ -288,20 +288,6 @@ Home
rts rts
@end @end
;------------------------------------------------------------------------------
; BlankHGR
; clear and show HGR page 1 without flickering
;
; in: none
; out: text page clobbered (but screen holes preserved)
; $2000..$3FFF cleared
;------------------------------------------------------------------------------
BlankHGR
jsr Home
jsr .ClearHGR1 ; clear hi-res screen 1
bit PAGE1 ; show hi-res screen 1 (now blank)
jmp HGRMode
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; BlankDHGR ; BlankDHGR
; clear and show DHGR page 1 without flickering ; clear and show DHGR page 1 without flickering
@ -322,6 +308,19 @@ BlankDHGR
jmp HGRMode jmp HGRMode
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; BlankHGR
; clear and show HGR page 1 without flickering
;
; in: none
; out: text page clobbered (but screen holes preserved)
; $2000..$3FFF cleared
;------------------------------------------------------------------------------
BlankHGR
jsr Home
jsr .ClearHGR1 ; clear hi-res screen 1
bit PAGE1 ; show hi-res screen 1 (now blank)
; execution falls through here
;------------------------------------------------------------------------------
; HGRMode ; HGRMode
; twiddles softswitches to set HGR mode (does not set page 1 or 2) ; twiddles softswitches to set HGR mode (does not set page 1 or 2)
; ;