mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-23 12:33:32 +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,
|
||||
; gGlobalPrefsStore, gGamesListStore)
|
||||
; ...unused...
|
||||
; EC23..FFF9 - main program code
|
||||
; EC24..FFF9 - main program code
|
||||
; FFFA..FFFF - NMI, reset, IRQ vectors
|
||||
;
|
||||
; LC RAM BANK 2
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user