shave some bytes

This commit is contained in:
4am 2019-10-08 14:56:20 -04:00
parent 31bb5ba053
commit 9a5330b6cc
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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