cut some bytes, fix animated titles

This commit is contained in:
Peter Ferrie 2020-03-24 21:47:08 -07:00
parent 51084c49d8
commit 8524c0d217
3 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,7 @@
; LC RAM BANK 1
; D000..E2DD - persistent data structures (gGlobalPrefsStore, gGamesListStore)
; ...unused...
; EA7B..FFF8 - main program code
; E97D..FFF8 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors
;
; LC RAM BANK 2

View File

@ -25,12 +25,10 @@ AnyGameSelected
; C set if gGameToLaunch is #$FFFF
; X preserved
+LD16 gGameToLaunch
+CMP16 $FFFF
beq +
+CMP16 $FFFF ; CMP sets carry when equal
beq +
clc
rts
+ sec
rts
+ rts
GetGameToLaunch
; in: gGameToLaunch = index into gGamesListStore (word) or #$FFFF if no game selected

View File

@ -26,15 +26,15 @@ MaybeAnimateTitle
ldy OffscreenPage
bne +
eor #$60
+ sta SAVE+1
+ sta DEST+1
and #$60
sta PageFrom+2
eor #$60
tax
lda #$FD
sta SAVE
sta DEST
ldy #0
lda (SAVE),y ; see if there is a hidden JMP to an
lda (DEST),y ; see if there is a hidden JMP to an
cmp #$4C ; animation routine for this screen
; at +$1FFD (after the graphics data,
; in the last 3 bytes of a $2000 byte
@ -72,4 +72,4 @@ MaybeAnimateTitle
@titleAnimPrelaunch ; this is executed from $106/main by |Launch|
bit $C082
jmp (SAVE)
jmp (DEST)