mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-08 16:32:30 +00:00
shave some bytes
This commit is contained in:
parent
31bb5ba053
commit
9a5330b6cc
@ -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...
|
||||||
; EC23..FFF9 - main program code
|
; EC24..FFF9 - main program code
|
||||||
; FFFA..FFFF - NMI, reset, IRQ vectors
|
; FFFA..FFFF - NMI, reset, IRQ vectors
|
||||||
;
|
;
|
||||||
; LC RAM BANK 2
|
; LC RAM BANK 2
|
||||||
|
@ -95,7 +95,7 @@ MiniAttractMode
|
|||||||
+LDADDR gAttractModeStore
|
+LDADDR gAttractModeStore
|
||||||
jsr okvs_len
|
jsr okvs_len
|
||||||
cmp @MiniAttractIndex
|
cmp @MiniAttractIndex
|
||||||
beq @exit ; we've run through all modules, so exit to caller
|
beq ATTRTS ; we've run through all modules, so exit to caller
|
||||||
|
|
||||||
@MiniAttractIndex=*+1
|
@MiniAttractIndex=*+1
|
||||||
ldx #$FD ; SMC
|
ldx #$FD ; SMC
|
||||||
@ -112,7 +112,7 @@ MiniAttractMode
|
|||||||
inc @MiniAttractIndex
|
inc @MiniAttractIndex
|
||||||
lda KBD
|
lda KBD
|
||||||
bpl @loop
|
bpl @loop
|
||||||
@exit rts
|
ATTRTS rts
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; RunAttractModule
|
; RunAttractModule
|
||||||
@ -142,9 +142,7 @@ RunAttractModule
|
|||||||
|
|
||||||
+LDAY @key
|
+LDAY @key
|
||||||
jsr GetGameInfo
|
jsr GetGameInfo
|
||||||
bcc + ; if game doesn't exist, skip the demo
|
bcs ATTRTS ; if game doesn't exist, skip the demo
|
||||||
rts
|
|
||||||
+
|
|
||||||
cpx #$FF
|
cpx #$FF
|
||||||
beq +
|
beq +
|
||||||
stx gGameToLaunch
|
stx gGameToLaunch
|
||||||
|
Loading…
Reference in New Issue
Block a user