mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-26 20:30:29 +00:00
shave some bytes
This commit is contained in:
parent
a544cb9621
commit
940ae5bc4b
@ -9,7 +9,7 @@
|
|||||||
; D000..E611 - persistent data structures (per-game cheat categories,
|
; D000..E611 - persistent data structures (per-game cheat categories,
|
||||||
; gGlobalPrefsStore, gGamesListStore)
|
; gGlobalPrefsStore, gGamesListStore)
|
||||||
; ...unused...
|
; ...unused...
|
||||||
; EC22..FFF9 - main program code
|
; EC23..FFF9 - main program code
|
||||||
; FFFA..FFFF - NMI, reset, IRQ vectors
|
; FFFA..FFFF - NMI, reset, IRQ vectors
|
||||||
;
|
;
|
||||||
; LC RAM BANK 2
|
; LC RAM BANK 2
|
||||||
|
@ -69,7 +69,7 @@ kCheat
|
|||||||
+STAY $00
|
+STAY $00
|
||||||
ldy #0
|
ldy #0
|
||||||
lda ($00),y
|
lda ($00),y
|
||||||
beq +
|
beq .RTS
|
||||||
tay
|
tay
|
||||||
clc
|
clc
|
||||||
adc $FE
|
adc $FE
|
||||||
@ -79,9 +79,9 @@ kCheat
|
|||||||
sta ($FE),y
|
sta ($FE),y
|
||||||
bne -
|
bne -
|
||||||
stx $FE
|
stx $FE
|
||||||
bcc +
|
bcc .RTS
|
||||||
inc $FF
|
inc $FF
|
||||||
+ rts
|
.RTS rts
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; pref_get
|
; pref_get
|
||||||
@ -123,7 +123,7 @@ pref_get
|
|||||||
+ !word $FDFD ; SMC
|
+ !word $FDFD ; SMC
|
||||||
bcs .useDefaultValue ; if pref key is not found, use default value
|
bcs .useDefaultValue ; if pref key is not found, use default value
|
||||||
ldx .store1+1
|
ldx .store1+1
|
||||||
beq .done ; if no OKVS to validate against, we're done
|
beq .RTS ; if no OKVS to validate against, we're done
|
||||||
+STAY +
|
+STAY +
|
||||||
+STAY PTR
|
+STAY PTR
|
||||||
ldy #0
|
ldy #0
|
||||||
@ -137,8 +137,7 @@ pref_get
|
|||||||
ldx #0
|
ldx #0
|
||||||
+
|
+
|
||||||
+LDAY .store1
|
+LDAY .store1
|
||||||
jsr okvs_nth
|
jmp okvs_nth
|
||||||
.done rts
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; pref_set
|
; pref_set
|
||||||
|
Loading…
Reference in New Issue
Block a user