add more files to TOTAL.DATA

This commit is contained in:
4am 2021-11-16 21:44:30 -05:00
parent c7f6e02e2d
commit ec637f31f8
39 changed files with 83 additions and 66 deletions

View File

@ -44,12 +44,7 @@ dsk: index asmproboot asmlauncher
# #
for f in \ for f in \
build/TOTAL.DATA \ build/TOTAL.DATA \
res/TITLE \
res/COVER \
res/HELP \
build/PREFS.CONF \ build/PREFS.CONF \
build/CREDITS \
build/HELPTEXT \
res/DECRUNCH \ res/DECRUNCH \
res/JOYSTICK \ res/JOYSTICK \
res/Finder.Data \ res/Finder.Data \
@ -113,6 +108,9 @@ index: md asmfx asmprelaunch compress
[ -f build/index ] || bin/padto.sh build/TOTAL.DATA [ -f build/index ] || bin/padto.sh build/TOTAL.DATA
[ -f build/index ] || ((for f in res/TITLE.HGR/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -a build/TOTAL.DATA res/TITLE.HGR build/HGR.TITLES.LOG > build/TITLE.IDX) [ -f build/index ] || ((for f in res/TITLE.HGR/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -a build/TOTAL.DATA res/TITLE.HGR build/HGR.TITLES.LOG > build/TITLE.IDX)
[ -f build/index ] || ((for f in res/TITLE.DHGR/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -a build/TOTAL.DATA res/TITLE.DHGR build/DHGR.TITLES.LOG > build/DTITLE.IDX) [ -f build/index ] || ((for f in res/TITLE.DHGR/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -a build/TOTAL.DATA res/TITLE.DHGR build/DHGR.TITLES.LOG > build/DTITLE.IDX)
[ -f build/index ] || bin/addfile.sh res/COVER build/TOTAL.DATA > src/index/res.cover.idx.a
[ -f build/index ] || bin/addfile.sh res/TITLE build/TOTAL.DATA > src/index/res.title.idx.a
[ -f build/index ] || bin/addfile.sh res/HELP build/TOTAL.DATA > src/index/res.help.idx.a
# #
# precompute indexed files for game help # precompute indexed files for game help
# note: these can be padded because they're loaded into $800 at a time when $800..$1FFF is clobber-able # note: these can be padded because they're loaded into $800 at a time when $800..$1FFF is clobber-able
@ -201,6 +199,11 @@ index: md asmfx asmprelaunch compress
[ -f build/index ] || bin/addfile.sh build/DHGR.IDX build/TOTAL.DATA > src/index/dhgr.idx.a [ -f build/index ] || bin/addfile.sh build/DHGR.IDX build/TOTAL.DATA > src/index/dhgr.idx.a
[ -f build/index ] || bin/addfile.sh build/GR.IDX build/TOTAL.DATA > src/index/gr.idx.a [ -f build/index ] || bin/addfile.sh build/GR.IDX build/TOTAL.DATA > src/index/gr.idx.a
[ -f build/index ] || bin/addfile.sh build/ARTWORK.IDX build/TOTAL.DATA > src/index/artwork.idx.a [ -f build/index ] || bin/addfile.sh build/ARTWORK.IDX build/TOTAL.DATA > src/index/artwork.idx.a
#
# add additional miscellaneous files
#
[ -f build/index ] || bin/addfile.sh build/HELPTEXT build/TOTAL.DATA > src/index/helptext.idx.a
[ -f build/index ] || bin/addfile.sh build/CREDITS build/TOTAL.DATA > src/index/credits.idx.a
touch build/index touch build/index
asmlauncher: md asmlauncher: md

BIN
res/COVER

Binary file not shown.

BIN
res/HELP

Binary file not shown.

BIN
res/TITLE

Binary file not shown.

View File

@ -2,11 +2,7 @@
LAUNCHER.SYSTEM=Type(FF),AuxType(2000),Access(C3) LAUNCHER.SYSTEM=Type(FF),AuxType(2000),Access(C3)
TOTAL.DATA=Type(06),AuxType(0000),Access(C3) TOTAL.DATA=Type(06),AuxType(0000),Access(C3)
TOTAL.IDX=Type(06),AuxType(0000),Access(C3)
PREFS.CONF=Type(04),AuxType(0000),Access(C3) PREFS.CONF=Type(04),AuxType(0000),Access(C3)
COVER=Type(06),AuxType(2000),Access(C3)
TITLE=Type(06),AuxType(2000),Access(C3)
HELP=Type(06),AuxType(2000),Access(C3)
CREDITS=Type(06),AuxType(0800),Access(C3) CREDITS=Type(06),AuxType(0800),Access(C3)
HELPTEXT=Type(06),AuxType(0800),Access(C3) HELPTEXT=Type(06),AuxType(0800),Access(C3)
DECRUNCH=Type(06),AuxType(0200),Access(C3) DECRUNCH=Type(06),AuxType(0200),Access(C3)

View File

@ -201,7 +201,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 = $FEBA ; Roger Rabbit, avoid, use Infiltrator 2 style instead iAddToPath = $FEB9 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
itraverse = $DB31 ; Roger Rabbit, avoid, use Infiltrator 2 style instead itraverse = $DB31 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
ldrlo = $55 ; constant ldrlo = $55 ; constant
ldrhi = $56 ; constant ldrhi = $56 ; constant

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9882226 !be24 10334857
!le16 4186 !le16 4493

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9835641 !be24 10288272
!le16 5174 !le16 5174

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9779017 !be24 10231648
!le16 3580 !le16 3580

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9791349 !be24 10243980
!le16 3940 !le16 3940

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9806710 !be24 10259341
!le16 4615 !le16 4615

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9823947 !be24 10276578
!le16 5562 !le16 5562

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9842961 !be24 10295592
!le16 1242 !le16 1242

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9867032 !be24 10319663
!le16 464 !le16 464

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9840815 !be24 10293446
!le16 2146 !le16 2146

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9844203 !be24 10296834
!le16 6132 !le16 6132

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9867496 !be24 10320127
!le16 4364 !le16 4364

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9871860 !be24 10324491
!le16 1516 !le16 1516

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9873376 !be24 10326007
!le16 1031 !le16 1031

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9874407 !be24 10327038
!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 9877644 !be24 10330275
!le16 2694 !le16 2694

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9880338 !be24 10332969
!le16 441 !le16 441

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9880779 !be24 10333410
!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 9855171 !be24 10307802
!le16 6132 !le16 6132

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9829509 !be24 10282140
!le16 6132 !le16 6132

View File

@ -0,0 +1,8 @@
;
; Index record for res/COVER
;
; This file is automatically generated
;
!byte 0
!be24 3523584
!le16 8192

8
src/index/res.help.idx.a Normal file
View File

@ -0,0 +1,8 @@
;
; Index record for res/HELP
;
; This file is automatically generated
;
!byte 0
!be24 3539968
!le16 8192

View File

@ -0,0 +1,8 @@
;
; Index record for res/TITLE
;
; This file is automatically generated
;
!byte 0
!be24 3531776
!le16 8192

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9771017 !be24 10223648
!le16 8000 !le16 8000

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9782597 !be24 10235228
!le16 8752 !le16 8752

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9795289 !be24 10247920
!le16 11421 !le16 11421

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9811325 !be24 10263956
!le16 12622 !le16 12622

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9850335 !be24 10302966
!le16 4836 !le16 4836

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 9861303 !be24 10313934
!le16 5729 !le16 5729

View File

@ -159,22 +159,10 @@ kCreditsFile
!byte 7 !byte 7
!raw "CREDITS" !raw "CREDITS"
kHelpBackgroundFile
!byte 4
!raw "HELP"
kHelpTextFile kHelpTextFile
!byte 8 !byte 8
!raw "HELPTEXT" !raw "HELPTEXT"
kTitleFile
!byte 5
!raw "TITLE"
kCoverFile
!byte 5
!raw "COVER"
kCoverFadeFile kCoverFadeFile
!byte 9 !byte 9
!raw "COVERFADE" !raw "COVERFADE"
@ -194,3 +182,12 @@ kDecrunchFile
kJoystickFile kJoystickFile
!byte 8 !byte 8
!raw "JOYSTICK" !raw "JOYSTICK"
kHelpBackgroundRecord
!source "src/index/res.help.idx.a"
kTitleRecord
!source "src/index/res.title.idx.a"
kCoverRecord
!source "src/index/res.cover.idx.a"

View File

@ -37,10 +37,9 @@ Help
clc clc
bcc .clearAndDisplayHelp ; always branches bcc .clearAndDisplayHelp ; always branches
@global jsr LoadFile ; load help text into $800 @global jsr LoadIndexedFile ; load help text into $800
!word kRootDirectory
!word kHelpTextFile
!word $800 !word $800
!word kHelpTextRecord
jsr LoadHelpOffscreen ; load fancy backdrop jsr LoadHelpOffscreen ; load fancy backdrop
ldx #7 ldx #7
@ -55,10 +54,9 @@ Help
; all other flags and registers clobbered ; all other flags and registers clobbered
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
Credits Credits
jsr LoadFile ; load credits text into $800 jsr LoadIndexedFile ; load credits text into $800
!word kRootDirectory
!word kCreditsFile
!word $800 !word $800
!word kCreditsRecord
.clearAndDisplayHelp .clearAndDisplayHelp
jsr ForceHGRMode jsr ForceHGRMode
jsr ClearOffscreen jsr ClearOffscreen

View File

@ -50,7 +50,7 @@ OffscreenPage = * + 1
; out: all flags and registers clobbered ; out: all flags and registers clobbered
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
LoadTitleOffscreen LoadTitleOffscreen
lda #<kTitleFile lda #<kTitleRecord
+HIDE_NEXT_2_BYTES +HIDE_NEXT_2_BYTES
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; LoadHelpOffscreen ; LoadHelpOffscreen
@ -60,7 +60,7 @@ LoadTitleOffscreen
; out: all flags and registers clobbered ; out: all flags and registers clobbered
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
LoadHelpOffscreen LoadHelpOffscreen
lda #<kHelpBackgroundFile lda #<kHelpBackgroundRecord
+HIDE_NEXT_2_BYTES +HIDE_NEXT_2_BYTES
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; LoadCoverOffscreen ; LoadCoverOffscreen
@ -70,18 +70,17 @@ LoadHelpOffscreen
; out: all flags and registers clobbered ; out: all flags and registers clobbered
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
LoadCoverOffscreen LoadCoverOffscreen
lda #<kCoverFile lda #<kCoverRecord
LoadOffscreenFromAY LoadOffscreenFromAY
sta @fname sta @indexlo
jsr ForceHGRMode jsr ForceHGRMode
jsr GetOffscreenAddress jsr GetOffscreenAddress
sta + sta @addrhi
jsr LoadFile jsr LoadIndexedFile
!word kRootDirectory
@fname !byte $FD ; SMC
!byte >kCoverFile ; all of these are on the same page
!byte $00 !byte $00
+ !byte $FD ; SMC @addrhi !byte $FD ; SMC
@indexlo !byte $FD ; SMC
!byte >kCoverRecord ; all of these are on the same page
rts rts
LoadGameTitleOffscreen LoadGameTitleOffscreen