add even more files to TOTAL.DATA

This commit is contained in:
4am 2021-11-17 00:25:17 -05:00
parent cf213dd780
commit bf745a4b66
9 changed files with 34 additions and 23 deletions

View File

@ -45,8 +45,6 @@ dsk: index asmproboot asmlauncher
for f in \
build/TOTAL.DATA \
build/PREFS.CONF \
res/DECRUNCH \
res/JOYSTICK \
res/Finder.Data \
res/Finder.Root; do \
$(CADIUS) ADDFILE build/"$(DISK)" "/$(VOLUME)/" "$$f" >>build/log; \
@ -204,6 +202,8 @@ index: md asmfx asmprelaunch compress
#
[ -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
[ -f build/index ] || bin/addfile.sh res/DECRUNCH build/TOTAL.DATA > src/index/decrunch.idx.a
[ -f build/index ] || bin/addfile.sh res/JOYSTICK build/TOTAL.DATA > src/index/joystick.idx.a
touch build/index
asmlauncher: md

View File

@ -3,9 +3,5 @@
LAUNCHER.SYSTEM=Type(FF),AuxType(2000),Access(C3)
TOTAL.DATA=Type(06),AuxType(0000),Access(C3)
PREFS.CONF=Type(04),AuxType(0000),Access(C3)
CREDITS=Type(06),AuxType(0800),Access(C3)
HELPTEXT=Type(06),AuxType(0800),Access(C3)
DECRUNCH=Type(06),AuxType(0200),Access(C3)
JOYSTICK=Type(06),AuxType(0800),Access(C3)
Finder.Data=Type(C9),AuxType(0000),Access(E7)
Finder.Root=Type(C9),AuxType(0000),Access(E7)

View File

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

View File

@ -53,12 +53,11 @@ DecompressHGR
pha
lda auxreq
bne +
jmp LoadFile ; load decompression code to $200
+ jmp LoadAuxFile ; load decompression code to $200/aux
jmp LoadIndexedFile ; load decompression code to $200
+ jmp LoadAuxIndexedFile ; load decompression code to $200/aux
@loaddecrunch
!word kRootDirectory
!word kDecrunchFile
!word $200
!word kDecrunchRecord
ldx auxreq
sta READMAINMEM,x ; X = 0 or 1, so this will be READMAINMEM or READAUXMEM
sta WRITEMAINMEM,x ; X = 0 or 1, so this will be WRITEMAINMEM or WRITEAUXMEM

View File

@ -202,10 +202,9 @@ Launch
Joystick
jsr LoadStandardPrelaunch
jsr LoadFile
!word kRootDirectory
!word kJoystickFile
!word 0
jsr LoadIndexedFile
!word $800
!word kJoystickRecord
jmp Launch

View File

@ -152,6 +152,9 @@ LoadIndexedFile
!word @cc_parms
jsr swap_zpg ; restore sizelo2/hi2
dec $BF0E ; re-enable ROM mapping on return
+LD16 @address
sta ldrlo2 ; support Launch of what we just loaded
sty ldrhi2
jmp SwitchToBank1
@c8_parms

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

@ -0,0 +1,8 @@
;
; Index record for res/DECRUNCH
;
; This file is automatically generated
;
!byte 0
!be24 9911637
!le16 303

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

@ -0,0 +1,8 @@
;
; Index record for res/JOYSTICK
;
; This file is automatically generated
;
!byte 0
!be24 9911940
!le16 2370

View File

@ -136,6 +136,12 @@ kCreditsRecord
kHelpTextRecord
!source "src/index/helptext.idx.a"
kDecrunchRecord
!source "src/index/decrunch.idx.a"
kJoystickRecord
!source "src/index/joystick.idx.a"
kTotalDataFile
!byte 10
!raw "TOTAL.DATA"
@ -173,14 +179,6 @@ kSFXFizzleFile
!byte 10
!raw "SHR.FIZZLE"
kDecrunchFile
!byte 8
!raw "DECRUNCH"
kJoystickFile
!byte 8
!raw "JOYSTICK"
kHelpBackgroundRecord
!source "src/index/res.help.idx.a"