From 7ab4dd136ebba887e6cad6730954e220ebeab7dc Mon Sep 17 00:00:00 2001 From: 4am Date: Tue, 10 Sep 2019 00:24:54 -0400 Subject: [PATCH] shave 3 bytes --- src/constants.a | 2 +- src/ui.common.a | 27 +++++++++++++-------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/constants.a b/src/constants.a index 2245bee22..a41c9bfbb 100644 --- a/src/constants.a +++ b/src/constants.a @@ -9,7 +9,7 @@ ; D000..E4E9 - persistent data structures (gGlobalPrefsStore, gGamesListStore) ; ...end of data and start of code are approximate, in between is unused... ; ...if they ever overlap, things will go boom... -; E9CA..FFF9 - main program code +; E9CD..FFF9 - main program code ; FFFA..FFFF - NMI, reset, IRQ vectors ; ; LC RAM BANK 2 diff --git a/src/ui.common.a b/src/ui.common.a index 7ed660aa4..9afa697ee 100644 --- a/src/ui.common.a +++ b/src/ui.common.a @@ -288,20 +288,6 @@ Home rts @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 ; clear and show DHGR page 1 without flickering @@ -322,6 +308,19 @@ BlankDHGR 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 ; twiddles softswitches to set HGR mode (does not set page 1 or 2) ;