mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-26 17:49:43 +00:00
substitute gamehelp special characters at build time
This commit is contained in:
parent
158277745f
commit
333213dd3e
5
Makefile
5
Makefile
@ -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.
BIN
res/DEMO/TB
BIN
res/DEMO/TB
Binary file not shown.
Binary file not shown.
BIN
res/HELPTEXT
BIN
res/HELPTEXT
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
@ -30,20 +30,9 @@ DrawPageInternal
|
||||
ldy #0
|
||||
@parseLine
|
||||
lda (PTR), y
|
||||
cmp #$5B ; '[' at beginning on line
|
||||
bne + ; ends the parsing
|
||||
tya
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user