mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-24 03:34:02 +00:00
.
This commit is contained in:
parent
035aa3b07e
commit
84abc76fac
@ -9,7 +9,7 @@
|
||||
; D000..E5F4 - persistent data structures (per-game cheat categories,
|
||||
; gGlobalPrefsStore, gGamesListStore)
|
||||
; ...unused...
|
||||
; EABB..FFF9 - main program code
|
||||
; EABC..FFF9 - main program code
|
||||
; FFFA..FFFF - NMI, reset, IRQ vectors
|
||||
;
|
||||
; LC RAM BANK 2
|
||||
|
@ -33,13 +33,11 @@ BuildUILine1WithNoDots
|
||||
; in: X = game index, or #$FF if no game selected
|
||||
; out: all registers clobbered
|
||||
; UILine1 contains 40-character buffer (not length-prefixed) to print
|
||||
cpx #$FF
|
||||
beq +
|
||||
ldy gCheatsAvailable,x
|
||||
+HIDE_NEXT_2_BYTES
|
||||
+
|
||||
cpx #$FF
|
||||
bne +
|
||||
ldy #.kCheatsEnabled
|
||||
|
||||
+
|
||||
ldx #40
|
||||
lda #$00 ; horizontal 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
|
||||
; all registers clobbered
|
||||
; PTR clobbered
|
||||
cpx #$FF
|
||||
beq +
|
||||
ldy gCheatsAvailable,x
|
||||
+HIDE_NEXT_2_BYTES
|
||||
+
|
||||
cpx #$FF
|
||||
bne +
|
||||
ldy #.kCheatsEnabled
|
||||
|
||||
+
|
||||
ldx #39 ; reset gPathname+2 to gPathname+41 to
|
||||
lda #$00 ; horizontal bar character
|
||||
- sta gPathname+1,x
|
||||
@ -121,13 +117,11 @@ BuildCheatLine2
|
||||
; all registers clobbered
|
||||
; PTR clobbered
|
||||
; SAVE clobbered
|
||||
cpx #$FF
|
||||
beq +
|
||||
ldy gCheatsAvailable,x
|
||||
+HIDE_NEXT_2_BYTES
|
||||
+
|
||||
cpx #$FF
|
||||
bne +
|
||||
ldy #.kCheatsEnabled
|
||||
lda .kCheatDescriptionLo,y
|
||||
+ lda .kCheatDescriptionLo,y
|
||||
sta SAVE
|
||||
lda .kCheatDescriptionHi,y
|
||||
sta SAVE+1
|
||||
|
Loading…
Reference in New Issue
Block a user