This commit is contained in:
4am 2019-09-20 22:16:35 -04:00
parent 035aa3b07e
commit 84abc76fac
2 changed files with 10 additions and 16 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...
; EABB..FFF9 - main program code ; EABC..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

@ -33,13 +33,11 @@ BuildUILine1WithNoDots
; in: X = game index, or #$FF if no game selected ; in: X = game index, or #$FF if no game selected
; out: all registers clobbered ; out: all registers clobbered
; UILine1 contains 40-character buffer (not length-prefixed) to print ; UILine1 contains 40-character buffer (not length-prefixed) to print
cpx #$FF
beq +
ldy gCheatsAvailable,x ldy gCheatsAvailable,x
+HIDE_NEXT_2_BYTES cpx #$FF
+ bne +
ldy #.kCheatsEnabled ldy #.kCheatsEnabled
+
ldx #40 ldx #40
lda #$00 ; horizontal bar lda #$00 ; horizontal bar
- sta UILine1-1,x ; first, reset entire line to solid bar - sta UILine1-1,x ; first, reset entire line to solid bar
@ -84,13 +82,11 @@ BuildCheatLine1
; out: gPathname contains length-prefixed string to print centered ; out: gPathname contains length-prefixed string to print centered
; all registers clobbered ; all registers clobbered
; PTR clobbered ; PTR clobbered
cpx #$FF
beq +
ldy gCheatsAvailable,x ldy gCheatsAvailable,x
+HIDE_NEXT_2_BYTES cpx #$FF
+ bne +
ldy #.kCheatsEnabled ldy #.kCheatsEnabled
+
ldx #39 ; reset gPathname+2 to gPathname+41 to ldx #39 ; reset gPathname+2 to gPathname+41 to
lda #$00 ; horizontal bar character lda #$00 ; horizontal bar character
- sta gPathname+1,x - sta gPathname+1,x
@ -121,13 +117,11 @@ BuildCheatLine2
; all registers clobbered ; all registers clobbered
; PTR clobbered ; PTR clobbered
; SAVE clobbered ; SAVE clobbered
cpx #$FF
beq +
ldy gCheatsAvailable,x ldy gCheatsAvailable,x
+HIDE_NEXT_2_BYTES cpx #$FF
+ bne +
ldy #.kCheatsEnabled ldy #.kCheatsEnabled
lda .kCheatDescriptionLo,y + lda .kCheatDescriptionLo,y
sta SAVE sta SAVE
lda .kCheatDescriptionHi,y lda .kCheatDescriptionHi,y
sta SAVE+1 sta SAVE+1