substitute gamehelp special characters at build time

This commit is contained in:
4am 2021-10-14 15:14:42 -04:00
parent 158277745f
commit 333213dd3e
12 changed files with 9 additions and 22 deletions

View File

@ -34,7 +34,8 @@ dsk: asm
bin/buildokvs.sh "res/ATTRACT.CONF" "build/ATTRACT.IDX" >>build/log
bin/buildfx.sh "res/FX.CONF" "build/FX.IDX" "build/FX.ALL" "build/FX" >>build/log
bin/buildfx.sh "res/DFX.CONF" "build/DFX.IDX" "build/DFX.ALL" "build/FX" >>build/log
bin/buildhelp.sh "res/GAMES.CONF" "build/GAMEHELP.IDX" "build/GAMEHELP.ALL" "res/GAMEHELP" >>build/log
for f in res/GAMEHELP/*; do tr "\*\~\<\>\$$\%\[" "\020\021\010\025\016\017\000" < "$$f" > build/GAMEHELP/"$$(basename $$f)"; done >>build/log
bin/buildhelp.sh "res/GAMES.CONF" "build/GAMEHELP.IDX" "build/GAMEHELP.ALL" "build/GAMEHELP" >>build/log
rm -f build/SSDIR.CONF && touch build/SSDIR.CONF >>build/log
for f in res/SS/*; do bin/buildokvs.sh "$$f" "build/SS/$$(basename $$f)" && echo "$$(basename $$f)" >> build/SSDIR.CONF; done >>build/log
bin/buildfx.sh "build/SSDIR.CONF" "build/SLIDESHOW.IDX" "build/SLIDESHOW.ALL" "build/SS" >>build/log
@ -89,7 +90,7 @@ mount: dsk
osascript bin/V2Make.scpt "`pwd`" bin/4cade.vii build/"$(DISK)"
md:
mkdir -p build/X build/FX build/PRELAUNCH build/ATTRACT build/SS
mkdir -p build/X build/FX build/PRELAUNCH build/ATTRACT build/SS build/GAMEHELP
touch build/log
clean:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -17,7 +17,7 @@
; D000..D3FF - ProRWTS data
; D400..D66F - ProRWTS code
; D670..DB91 - HGR font code & ProRWTS glue code
; DB92..DBA1 - backup of stack (during gameplay and self-running demos)
; DB72..DB81 - backup of stack (during gameplay and self-running demos)
; ...unused...
; DBB4..DBFF - (de)acceleration function
; DC00..DFFF - HGR font data
@ -148,7 +148,7 @@ CHEATS_ENABLED = %00001000
iCurBlockLo = $D401
iCurBlockHi = $D403
iProDOS_enter = $D670
LoadFileDirect = $DAF4
LoadFileDirect = $DAD4
launchpatch = $D60E
iAddToPath = $FE67
itraverse = $D8D8

View File

@ -10,7 +10,8 @@
; for functions that take parameters on the stack
; set (PARAM) to point to the parameters and
; move the stack pointer to the first byte after the parameters
; clobbers A,X,Y
; clobbers A,Y
; preserves X
!macro PARAMS_ON_STACK .bytes {
pla
sta PARAM

View File

@ -29,21 +29,10 @@ DrawPageInternal
sta HTAB
ldy #0
@parseLine
lda (PTR),y
cmp #$5B ; '[' at beginning on line
bne + ; ends the parsing
tya
lda (PTR), y
beq @donePage
+ cmp #$0A
cmp #$0A
beq @doneParsingLine
ldx #5
- cmp @subs_a,x
bne @nosub
lda @subs_b,x
sta (PTR),y
@nosub
dex
bpl -
iny
bne @parseLine
@doneParsingLine
@ -67,10 +56,6 @@ DrawPageInternal
@donePage
plp
rts
@subs_a
!byte $2A,$7E,$3C,$3E,$24,$25
@subs_b
!byte $10,$11,$08,$15,$0E,$0F
Draw40CharsInternal
; A/Y contains address of character buffer