split MINIATTRACT.IDX into two because we have too many games

This commit is contained in:
4am 2022-05-03 22:36:49 -04:00
parent 4ecb3e8605
commit f9d99949c9
26 changed files with 67 additions and 30 deletions

View File

@ -123,7 +123,8 @@ index: preconditions md asmfx asmprelaunch compress
[ -f build/index ] || $(PARALLEL) '[ $$(echo "{/}" | cut -c-3) = "ACT" ] && bin/buildslideshow.sh -d build/GAMES.CONF < "{}" > "build/SS/{/}" || bin/buildslideshow.sh build/GAMES.CONF < "{}" > "build/SS/{/}"' ::: res/SS/* [ -f build/index ] || $(PARALLEL) '[ $$(echo "{/}" | cut -c-3) = "ACT" ] && bin/buildslideshow.sh -d build/GAMES.CONF < "{}" > "build/SS/{/}" || bin/buildslideshow.sh build/GAMES.CONF < "{}" > "build/SS/{/}"' ::: res/SS/*
[ -f build/index ] || ((for f in build/SS/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/SS > build/SLIDESHOW.IDX) [ -f build/index ] || ((for f in build/SS/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/SS > build/SLIDESHOW.IDX)
[ -f build/index ] || $(PARALLEL) 'bin/buildokvs.sh < "{}" > "build/ATTRACT/{/}"' ::: res/ATTRACT/* [ -f build/index ] || $(PARALLEL) 'bin/buildokvs.sh < "{}" > "build/ATTRACT/{/}"' ::: res/ATTRACT/*
[ -f build/index ] || ((for f in build/ATTRACT/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/ATTRACT > build/MINIATTRACT.IDX) [ -f build/index ] || ((for f in build/ATTRACT/[ABCDEFGHIJKLM]*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/ATTRACT > build/MINIATTRACT0.IDX)
[ -f build/index ] || ((for f in build/ATTRACT/[NOPQRSTUVWXYZ]*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/ATTRACT > build/MINIATTRACT1.IDX)
# #
# precompute indexed files for graphic effects # precompute indexed files for graphic effects
# note: these can be padded because they're loaded into $6000 at a time when $6000..$BEFF is clobber-able # note: these can be padded because they're loaded into $6000 at a time when $6000..$BEFF is clobber-able
@ -182,7 +183,8 @@ index: preconditions md asmfx asmprelaunch compress
[ -f build/index ] || bin/addfile.sh build/SFX.IDX build/TOTAL.DATA > src/index/sfx.idx.a [ -f build/index ] || bin/addfile.sh build/SFX.IDX build/TOTAL.DATA > src/index/sfx.idx.a
[ -f build/index ] || bin/addfile.sh build/GAMEHELP.IDX build/TOTAL.DATA > src/index/gamehelp.idx.a [ -f build/index ] || bin/addfile.sh build/GAMEHELP.IDX build/TOTAL.DATA > src/index/gamehelp.idx.a
[ -f build/index ] || bin/addfile.sh build/SLIDESHOW.IDX build/TOTAL.DATA > src/index/slideshow.idx.a [ -f build/index ] || bin/addfile.sh build/SLIDESHOW.IDX build/TOTAL.DATA > src/index/slideshow.idx.a
[ -f build/index ] || bin/addfile.sh build/MINIATTRACT.IDX build/TOTAL.DATA > src/index/miniattract.idx.a [ -f build/index ] || bin/addfile.sh build/MINIATTRACT0.IDX build/TOTAL.DATA > src/index/miniattract0.idx.a
[ -f build/index ] || bin/addfile.sh build/MINIATTRACT1.IDX build/TOTAL.DATA > src/index/miniattract1.idx.a
[ -f build/index ] || bin/addfile.sh build/TITLE.IDX build/TOTAL.DATA > src/index/title.idx.a [ -f build/index ] || bin/addfile.sh build/TITLE.IDX build/TOTAL.DATA > src/index/title.idx.a
[ -f build/index ] || bin/addfile.sh build/DTITLE.IDX build/TOTAL.DATA > src/index/dtitle.idx.a [ -f build/index ] || bin/addfile.sh build/DTITLE.IDX build/TOTAL.DATA > src/index/dtitle.idx.a
[ -f build/index ] || bin/addfile.sh build/HGR0.IDX build/TOTAL.DATA > src/index/hgr0.idx.a [ -f build/index ] || bin/addfile.sh build/HGR0.IDX build/TOTAL.DATA > src/index/hgr0.idx.a

View File

@ -204,7 +204,7 @@ PRELAUNCH_STANDARD_SIZE = 61 ; LoadStandardPrelaunch, eventually to be d
iCurBlockLo = $D601 ; constant iCurBlockLo = $D601 ; constant
iCurBlockHi = $D603 ; constant iCurBlockHi = $D603 ; constant
launchpatch = $D853 ; glue.launch.a launchpatch = $D853 ; glue.launch.a
iAddToPath = $FEBF ; Roger Rabbit (via prelaunch), avoid, use Infiltrator 2 style instead iAddToPath = $FEB5 ; Roger Rabbit (via prelaunch), avoid, use Infiltrator 2 style instead
; also Columns (via file in disk image) ; also Columns (via file in disk image)
itraverse = $DB42 ; Roger Rabbit, avoid, use Infiltrator 2 style instead itraverse = $DB42 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
; also Columns (via file in disk image) ; also Columns (via file in disk image)

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11400560 !be24 11400564
!le16 4515 !le16 4515

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11405075 !be24 11405079
!le16 410 !le16 410

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11405829 !be24 11405833
!le16 448 !le16 448

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11406277 !be24 11406281
!le16 303 !le16 303

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11405561 !be24 11405565
!le16 67 !le16 67

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11400501 !be24 11400505
!le16 59 !le16 59

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11399136 !be24 11399140
!le16 1284 !le16 1284

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11384797 !be24 11384801
!le16 521 !le16 521

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11405485 !be24 11405489
!le16 76 !le16 76

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11400420 !be24 11400424
!le16 81 !le16 81

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11405628 !be24 11405632
!le16 201 !le16 201

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11385318 !be24 11385322
!le16 4511 !le16 4511

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11389829 !be24 11389833
!le16 1575 !le16 1575

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11391404 !be24 11391408
!le16 1053 !le16 1053

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11392457 !be24 11392461
!le16 3237 !le16 3237

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11395694 !be24 11395698
!le16 2877 !le16 2877

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11398571 !be24 11398575
!le16 460 !le16 460

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11399031 !be24 11399035
!le16 105 !le16 105

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11406580 !be24 11406584
!le16 2370 !le16 2370

View File

@ -1,8 +1,8 @@
; ;
; Index record for build/MINIATTRACT.IDX ; Index record for build/MINIATTRACT0.IDX
; ;
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11372402 !be24 11372402
!le16 6417 !le16 3626

View File

@ -0,0 +1,8 @@
;
; Index record for build/MINIATTRACT1.IDX
;
; This file is automatically generated
;
!byte 0
!be24 11376028
!le16 2795

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 11378819 !be24 11378823
!le16 5978 !le16 5978

View File

@ -69,8 +69,16 @@ kPrelaunchIndexRecord
kAttractModeIndexRecord kAttractModeIndexRecord
!source "src/index/attract.idx.a" !source "src/index/attract.idx.a"
kMiniAttractIndexRecord kMiniAttractIndexLo
!source "src/index/miniattract.idx.a" !byte <kMiniAttractIndexRecord0
!byte <kMiniAttractIndexRecord1
kMiniAttractIndexHi
!byte >kMiniAttractIndexRecord0
!byte >kMiniAttractIndexRecord1
kMiniAttractIndexRecord0
!source "src/index/miniattract0.idx.a"
kMiniAttractIndexRecord1
!source "src/index/miniattract1.idx.a"
kAttractModeSlideshowIndexRecord kAttractModeSlideshowIndexRecord
!source "src/index/slideshow.idx.a" !source "src/index/slideshow.idx.a"

View File

@ -68,13 +68,32 @@ MegaAttractMode
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
MiniAttractMode MiniAttractMode
jsr GetGameToLaunch jsr GetGameToLaunch
+ST16 + +ST16 @GameToLaunch
+ST16 PTR
ldy #1
lda (PTR), y
sec
sbc #$41 ; A in [0..25]
lsr ; A in [0..15]
lsr ; A in [0..7]
lsr ; A in [0..3]
lsr ; A in [0..1]
tax
lda kMiniAttractIndexLo, x
sta @MiniAttractIndexRecord
lda kMiniAttractIndexHi, x
sta @MiniAttractIndexRecord+1
jsr LoadIndexedFile jsr LoadIndexedFile
- !word $0800 - !word $0800
!word kMiniAttractIndexRecord @MiniAttractIndexRecord
!word $FDFD ; SMC
jsr okvs_find jsr okvs_find
!word - !word -
+ !word $FDFD ; SMC @GameToLaunch
!word $FDFD ; SMC
jsr okvs_next_field jsr okvs_next_field
jsr SwitchToBank2 jsr SwitchToBank2
sty OKVS_CACHE sty OKVS_CACHE