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 \ for f in \
build/TOTAL.DATA \ build/TOTAL.DATA \
build/PREFS.CONF \ build/PREFS.CONF \
res/DECRUNCH \
res/JOYSTICK \
res/Finder.Data \ res/Finder.Data \
res/Finder.Root; do \ res/Finder.Root; do \
$(CADIUS) ADDFILE build/"$(DISK)" "/$(VOLUME)/" "$$f" >>build/log; \ $(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/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 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 touch build/index
asmlauncher: md asmlauncher: md

View File

@ -3,9 +3,5 @@
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)
PREFS.CONF=Type(04),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.Data=Type(C9),AuxType(0000),Access(E7)
Finder.Root=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 iCurBlockLo = $D601 ; constant
iCurBlockHi = $D603 ; constant iCurBlockHi = $D603 ; constant
launchpatch = $D853 ; glue.launch.a 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 itraverse = $DB31 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
ldrlo = $55 ; constant ldrlo = $55 ; constant
ldrhi = $56 ; constant ldrhi = $56 ; constant

View File

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

View File

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

View File

@ -152,6 +152,9 @@ LoadIndexedFile
!word @cc_parms !word @cc_parms
jsr swap_zpg ; restore sizelo2/hi2 jsr swap_zpg ; restore sizelo2/hi2
dec $BF0E ; re-enable ROM mapping on return dec $BF0E ; re-enable ROM mapping on return
+LD16 @address
sta ldrlo2 ; support Launch of what we just loaded
sty ldrhi2
jmp SwitchToBank1 jmp SwitchToBank1
@c8_parms @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 kHelpTextRecord
!source "src/index/helptext.idx.a" !source "src/index/helptext.idx.a"
kDecrunchRecord
!source "src/index/decrunch.idx.a"
kJoystickRecord
!source "src/index/joystick.idx.a"
kTotalDataFile kTotalDataFile
!byte 10 !byte 10
!raw "TOTAL.DATA" !raw "TOTAL.DATA"
@ -173,14 +179,6 @@ kSFXFizzleFile
!byte 10 !byte 10
!raw "SHR.FIZZLE" !raw "SHR.FIZZLE"
kDecrunchFile
!byte 8
!raw "DECRUNCH"
kJoystickFile
!byte 8
!raw "JOYSTICK"
kHelpBackgroundRecord kHelpBackgroundRecord
!source "src/index/res.help.idx.a" !source "src/index/res.help.idx.a"