mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-28 00:52:00 +00:00
move UILine1 to main memory since it's always rebuilt from scratch now
This commit is contained in:
parent
84abc76fac
commit
10e3d05f07
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user