move UILine1 to main memory since it's always rebuilt from scratch now

This commit is contained in:
4am 2019-09-20 22:27:41 -04:00
parent 84abc76fac
commit 10e3d05f07
2 changed files with 5 additions and 11 deletions

View File

@ -9,7 +9,7 @@
; D000..E5F4 - persistent data structures (per-game cheat categories, ; D000..E5F4 - persistent data structures (per-game cheat categories,
; gGlobalPrefsStore, gGamesListStore) ; gGlobalPrefsStore, gGamesListStore)
; ...unused... ; ...unused...
; EABC..FFF9 - main program code ; EAE5..FFF9 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors ; FFFA..FFFF - NMI, reset, IRQ vectors
; ;
; LC RAM BANK 2 ; LC RAM BANK 2
@ -79,6 +79,7 @@ zpCharMask = $F1 ; only uesd during init, then clobbered
gPathname = $1F00 ; used by SetPath/AddToPath gPathname = $1F00 ; used by SetPath/AddToPath
gKeyLen = $1F00 ; used by ParseGamesList gKeyLen = $1F00 ; used by ParseGamesList
gKey = $1F01 gKey = $1F01
UILine1 = $1F80
gValLen = $1F80 gValLen = $1F80
gVal = $1F81 gVal = $1F81

View File

@ -22,7 +22,6 @@
; Public variables ; Public variables
; - OffscreenPage ; - OffscreenPage
; - UILine1
; - UILine2 ; - UILine2
; - VisibleGameCount (set during init) ; - VisibleGameCount (set during init)
; ;
@ -35,11 +34,6 @@ OffscreenPage
; 1 = currently showing HGR page 1 ; 1 = currently showing HGR page 1
; (so offscreen is page 2 @ $4000) ; (so offscreen is page 2 @ $4000)
UILine1
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0
UILine2 UILine2
!byte 0,0,0,0,0,0,0,0,0,0 !byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0 !byte 0,0,0,0,0,0,0,0,0,0
@ -161,7 +155,7 @@ DrawSearchBarOffscreen
pla pla
bit gCheatsEnabled bit gCheatsEnabled
bpl @done ; if cheats are not enabled, we're done bpl OffscreenDone ; if cheats are not enabled, we're done
pha pha
tax tax
@ -180,9 +174,7 @@ DrawSearchBarOffscreen
lda OffscreenPage lda OffscreenPage
ror ror
+LDADDR gPathname +LDADDR gPathname
jsr DrawCenteredString jmp DrawCenteredString
@done rts
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; ClearOffscreen ; ClearOffscreen
@ -212,6 +204,7 @@ ClearOffscreen
inc @a+2 inc @a+2
dex dex
bne @a bne @a
OffscreenDone
rts rts
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------