add action HGR indexes to TOTAL.IDX

This commit is contained in:
4am 2021-11-13 17:11:26 -05:00
parent 6143e05eba
commit ad34d56e8d
14 changed files with 110 additions and 27 deletions

View File

@ -53,13 +53,6 @@ dsk: index asmproboot asmlauncher
build/PREFS.CONF \
build/CREDITS \
build/HELPTEXT \
build/HGR0.IDX \
build/HGR1.IDX \
build/HGR2.IDX \
build/HGR3.IDX \
build/HGR4.IDX \
build/HGR5.IDX \
build/HGR6.IDX \
res/DECRUNCH \
res/JOYSTICK \
res/Finder.Data \
@ -191,6 +184,13 @@ index: md asmfx asmprelaunch compress
bin/addfile.sh build/GAMEHELP.IDX build/TOTAL.IDX > src/index/gamehelp.idx.a
bin/addfile.sh build/SLIDESHOW.IDX build/TOTAL.IDX > src/index/slideshow.idx.a
bin/addfile.sh build/MINIATTRACT.IDX build/TOTAL.IDX > src/index/miniattract.idx.a
bin/addfile.sh build/HGR0.IDX build/TOTAL.IDX > src/index/hgr0.idx.a
bin/addfile.sh build/HGR1.IDX build/TOTAL.IDX > src/index/hgr1.idx.a
bin/addfile.sh build/HGR2.IDX build/TOTAL.IDX > src/index/hgr2.idx.a
bin/addfile.sh build/HGR3.IDX build/TOTAL.IDX > src/index/hgr3.idx.a
bin/addfile.sh build/HGR4.IDX build/TOTAL.IDX > src/index/hgr4.idx.a
bin/addfile.sh build/HGR5.IDX build/TOTAL.IDX > src/index/hgr5.idx.a
bin/addfile.sh build/HGR6.IDX build/TOTAL.IDX > src/index/hgr6.idx.a
bin/addfile.sh build/DHGR.IDX build/TOTAL.IDX > src/index/dhgr.idx.a
bin/addfile.sh build/GR.IDX build/TOTAL.IDX > src/index/gr.idx.a
bin/addfile.sh build/ARTWORK.IDX build/TOTAL.IDX > src/index/artwork.idx.a

View File

@ -201,7 +201,7 @@ PRELAUNCH_STANDARD_SIZE = 61 ; LoadStandardPrelaunch, eventually to be d
iCurBlockLo = $D401 ; constant
iCurBlockHi = $D403 ; constant
launchpatch = $D662 ; glue.launch.a
iAddToPath = $FED4 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
iAddToPath = $FEA5 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
itraverse = $D964 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
ldrlo = $55 ; constant
ldrhi = $56 ; constant

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 82246
!be24 95588
!le16 4186

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 80904
!be24 94246
!le16 1249

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 82153
!be24 95495
!le16 93

8
src/index/hgr0.idx.a Normal file
View File

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

8
src/index/hgr1.idx.a Normal file
View File

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

8
src/index/hgr2.idx.a Normal file
View File

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

8
src/index/hgr3.idx.a Normal file
View File

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

8
src/index/hgr4.idx.a Normal file
View File

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

8
src/index/hgr5.idx.a Normal file
View File

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

8
src/index/hgr6.idx.a Normal file
View File

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

View File

@ -93,6 +93,37 @@ kDHGRActionIndexRecord
kGRActionIndexRecord
!source "src/index/gr.idx.a"
kHGRActionIndexLo
!byte <kHGRActionIndexRecord0
!byte <kHGRActionIndexRecord1
!byte <kHGRActionIndexRecord2
!byte <kHGRActionIndexRecord3
!byte <kHGRActionIndexRecord4
!byte <kHGRActionIndexRecord5
!byte <kHGRActionIndexRecord6
kHGRActionIndexHi
!byte >kHGRActionIndexRecord0
!byte >kHGRActionIndexRecord1
!byte >kHGRActionIndexRecord2
!byte >kHGRActionIndexRecord3
!byte >kHGRActionIndexRecord4
!byte >kHGRActionIndexRecord5
!byte >kHGRActionIndexRecord6
kHGRActionIndexRecord0
!source "src/index/hgr0.idx.a"
kHGRActionIndexRecord1
!source "src/index/hgr1.idx.a"
kHGRActionIndexRecord2
!source "src/index/hgr2.idx.a"
kHGRActionIndexRecord3
!source "src/index/hgr3.idx.a"
kHGRActionIndexRecord4
!source "src/index/hgr4.idx.a"
kHGRActionIndexRecord5
!source "src/index/hgr5.idx.a"
kHGRActionIndexRecord6
!source "src/index/hgr6.idx.a"
kTotalDataFile
!byte 10
!raw "TOTAL.DATA"
@ -113,13 +144,6 @@ kAnimatedTitleDirectory
!byte 15
!raw "TITLE.ANIMATED/"
kHGRActionIndexFile
!byte 8
!raw "HGR"
gHGRActionIndexNumber
!raw "_"
!raw ".IDX"
kDemoDirectory
!byte 5
!raw "DEMO/"

View File

@ -159,18 +159,21 @@ LoadIndexedHGRFile
ldy #1
lda (PTR), y
sec
sbc #$41
lsr
lsr
clc
adc #$30 ; A = "0".."6" (ASCII)
sta gHGRActionIndexNumber ; part of kHGRActionIndexFile
sbc #$41 ; A in [0..25]
lsr ; A in [0..15]
lsr ; A in [0..7]
tax
lda kHGRActionIndexLo, x
sta HGRActionIndexRecord
lda kHGRActionIndexHi, x
sta HGRActionIndexRecord+1
jsr LoadFile ; load index file into $4000
!word kRootDirectory
!word kHGRActionIndexFile
jsr LoadIndexedFile ; load index file into $4000
!word kTotalIndexFile
HGRActionIndexPtr
!word $4000
HGRActionIndexRecord
!word $FDFD ; SMC
jsr okvs_find
!word HGRActionIndexPtr