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,
; gGlobalPrefsStore, gGamesListStore)
; ...unused...
; EC23..FFF9 - main program code
; EC24..FFF9 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors
;
; LC RAM BANK 2

View File

@ -95,7 +95,7 @@ MiniAttractMode
+LDADDR gAttractModeStore
jsr okvs_len
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
ldx #$FD ; SMC
@ -112,7 +112,7 @@ MiniAttractMode
inc @MiniAttractIndex
lda KBD
bpl @loop
@exit rts
ATTRTS rts
;------------------------------------------------------------------------------
; RunAttractModule
@ -142,9 +142,7 @@ RunAttractModule
+LDAY @key
jsr GetGameInfo
bcc + ; if game doesn't exist, skip the demo
rts
+
bcs ATTRTS ; if game doesn't exist, skip the demo
cpx #$FF
beq +
stx gGameToLaunch