Skip to content

Commit

Permalink
shave some bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
a2-4am committed Oct 8, 2019
1 parent 31bb5ba commit 9a5330b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/constants.a
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions src/ui.attract.mode.a
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -112,7 +112,7 @@ MiniAttractMode
inc @MiniAttractIndex
lda KBD
bpl @loop
@exit rts
ATTRTS rts

;------------------------------------------------------------------------------
; RunAttractModule
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a5330b

Please sign in to comment.