mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-26 20:30:29 +00:00
add more files to TOTAL.DATA
This commit is contained in:
parent
c7f6e02e2d
commit
ec637f31f8
13
Makefile
13
Makefile
@ -44,12 +44,7 @@ dsk: index asmproboot asmlauncher
|
||||
#
|
||||
for f in \
|
||||
build/TOTAL.DATA \
|
||||
res/TITLE \
|
||||
res/COVER \
|
||||
res/HELP \
|
||||
build/PREFS.CONF \
|
||||
build/CREDITS \
|
||||
build/HELPTEXT \
|
||||
res/DECRUNCH \
|
||||
res/JOYSTICK \
|
||||
res/Finder.Data \
|
||||
@ -113,6 +108,9 @@ index: md asmfx asmprelaunch compress
|
||||
[ -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.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
|
||||
# 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/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
|
||||
#
|
||||
# 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
|
||||
|
||||
asmlauncher: md
|
||||
|
@ -2,11 +2,7 @@
|
||||
|
||||
LAUNCHER.SYSTEM=Type(FF),AuxType(2000),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)
|
||||
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)
|
||||
HELPTEXT=Type(06),AuxType(0800),Access(C3)
|
||||
DECRUNCH=Type(06),AuxType(0200),Access(C3)
|
||||
|
@ -201,7 +201,7 @@ PRELAUNCH_STANDARD_SIZE = 61 ; LoadStandardPrelaunch, eventually to be d
|
||||
iCurBlockLo = $D601 ; constant
|
||||
iCurBlockHi = $D603 ; constant
|
||||
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
|
||||
ldrlo = $55 ; constant
|
||||
ldrhi = $56 ; constant
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9882226
|
||||
!le16 4186
|
||||
!be24 10334857
|
||||
!le16 4493
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9835641
|
||||
!be24 10288272
|
||||
!le16 5174
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9779017
|
||||
!be24 10231648
|
||||
!le16 3580
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9791349
|
||||
!be24 10243980
|
||||
!le16 3940
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9806710
|
||||
!be24 10259341
|
||||
!le16 4615
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9823947
|
||||
!be24 10276578
|
||||
!le16 5562
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9842961
|
||||
!be24 10295592
|
||||
!le16 1242
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9880884
|
||||
!be24 10333515
|
||||
!le16 1249
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9867032
|
||||
!be24 10319663
|
||||
!le16 464
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9840815
|
||||
!be24 10293446
|
||||
!le16 2146
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9844203
|
||||
!be24 10296834
|
||||
!le16 6132
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9882133
|
||||
!be24 10334764
|
||||
!le16 93
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9867496
|
||||
!be24 10320127
|
||||
!le16 4364
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9871860
|
||||
!be24 10324491
|
||||
!le16 1516
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9873376
|
||||
!be24 10326007
|
||||
!le16 1031
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9874407
|
||||
!be24 10327038
|
||||
!le16 3237
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9877644
|
||||
!be24 10330275
|
||||
!le16 2694
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9880338
|
||||
!be24 10332969
|
||||
!le16 441
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9880779
|
||||
!be24 10333410
|
||||
!le16 105
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9855171
|
||||
!be24 10307802
|
||||
!le16 6132
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9829509
|
||||
!be24 10282140
|
||||
!le16 6132
|
||||
|
8
src/index/res.cover.idx.a
Normal file
8
src/index/res.cover.idx.a
Normal 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
8
src/index/res.help.idx.a
Normal file
@ -0,0 +1,8 @@
|
||||
;
|
||||
; Index record for res/HELP
|
||||
;
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 3539968
|
||||
!le16 8192
|
8
src/index/res.title.idx.a
Normal file
8
src/index/res.title.idx.a
Normal file
@ -0,0 +1,8 @@
|
||||
;
|
||||
; Index record for res/TITLE
|
||||
;
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 3531776
|
||||
!le16 8192
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9771017
|
||||
!be24 10223648
|
||||
!le16 8000
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9782597
|
||||
!be24 10235228
|
||||
!le16 8752
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9795289
|
||||
!be24 10247920
|
||||
!le16 11421
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9811325
|
||||
!be24 10263956
|
||||
!le16 12622
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9850335
|
||||
!be24 10302966
|
||||
!le16 4836
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 9861303
|
||||
!be24 10313934
|
||||
!le16 5729
|
||||
|
@ -159,22 +159,10 @@ kCreditsFile
|
||||
!byte 7
|
||||
!raw "CREDITS"
|
||||
|
||||
kHelpBackgroundFile
|
||||
!byte 4
|
||||
!raw "HELP"
|
||||
|
||||
kHelpTextFile
|
||||
!byte 8
|
||||
!raw "HELPTEXT"
|
||||
|
||||
kTitleFile
|
||||
!byte 5
|
||||
!raw "TITLE"
|
||||
|
||||
kCoverFile
|
||||
!byte 5
|
||||
!raw "COVER"
|
||||
|
||||
kCoverFadeFile
|
||||
!byte 9
|
||||
!raw "COVERFADE"
|
||||
@ -194,3 +182,12 @@ kDecrunchFile
|
||||
kJoystickFile
|
||||
!byte 8
|
||||
!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"
|
||||
|
@ -37,10 +37,9 @@ Help
|
||||
clc
|
||||
bcc .clearAndDisplayHelp ; always branches
|
||||
|
||||
@global jsr LoadFile ; load help text into $800
|
||||
!word kRootDirectory
|
||||
!word kHelpTextFile
|
||||
@global jsr LoadIndexedFile ; load help text into $800
|
||||
!word $800
|
||||
!word kHelpTextRecord
|
||||
|
||||
jsr LoadHelpOffscreen ; load fancy backdrop
|
||||
ldx #7
|
||||
@ -55,10 +54,9 @@ Help
|
||||
; all other flags and registers clobbered
|
||||
;------------------------------------------------------------------------------
|
||||
Credits
|
||||
jsr LoadFile ; load credits text into $800
|
||||
!word kRootDirectory
|
||||
!word kCreditsFile
|
||||
jsr LoadIndexedFile ; load credits text into $800
|
||||
!word $800
|
||||
!word kCreditsRecord
|
||||
.clearAndDisplayHelp
|
||||
jsr ForceHGRMode
|
||||
jsr ClearOffscreen
|
||||
|
@ -50,7 +50,7 @@ OffscreenPage = * + 1
|
||||
; out: all flags and registers clobbered
|
||||
;------------------------------------------------------------------------------
|
||||
LoadTitleOffscreen
|
||||
lda #<kTitleFile
|
||||
lda #<kTitleRecord
|
||||
+HIDE_NEXT_2_BYTES
|
||||
;------------------------------------------------------------------------------
|
||||
; LoadHelpOffscreen
|
||||
@ -60,7 +60,7 @@ LoadTitleOffscreen
|
||||
; out: all flags and registers clobbered
|
||||
;------------------------------------------------------------------------------
|
||||
LoadHelpOffscreen
|
||||
lda #<kHelpBackgroundFile
|
||||
lda #<kHelpBackgroundRecord
|
||||
+HIDE_NEXT_2_BYTES
|
||||
;------------------------------------------------------------------------------
|
||||
; LoadCoverOffscreen
|
||||
@ -70,18 +70,17 @@ LoadHelpOffscreen
|
||||
; out: all flags and registers clobbered
|
||||
;------------------------------------------------------------------------------
|
||||
LoadCoverOffscreen
|
||||
lda #<kCoverFile
|
||||
lda #<kCoverRecord
|
||||
LoadOffscreenFromAY
|
||||
sta @fname
|
||||
sta @indexlo
|
||||
jsr ForceHGRMode
|
||||
jsr GetOffscreenAddress
|
||||
sta +
|
||||
jsr LoadFile
|
||||
!word kRootDirectory
|
||||
@fname !byte $FD ; SMC
|
||||
!byte >kCoverFile ; all of these are on the same page
|
||||
sta @addrhi
|
||||
jsr LoadIndexedFile
|
||||
!byte $00
|
||||
+ !byte $FD ; SMC
|
||||
@addrhi !byte $FD ; SMC
|
||||
@indexlo !byte $FD ; SMC
|
||||
!byte >kCoverRecord ; all of these are on the same page
|
||||
rts
|
||||
|
||||
LoadGameTitleOffscreen
|
||||
|
Loading…
Reference in New Issue
Block a user