
Сообщение от
NEO SPECTRUMAN
можно сделать дописывание файла при помощи SAVEBIN?
da, mozno, no nenada?
Let me try something...
Код:
; preparing data...
SAVEBIN "part1.bin",$0000,$2000
; preparing data...
SAVEBIN "part2.bin",$4000,$2000
; preparing data...
SAVEBIN "part3.bin",$8000,$1000
IF 3 == __PASS__
; would fail to open part1/part2/part3.bin in first/second pass (they exist after third pass)
DEVICE NONE : ORG 0 ; device none to not write part files into device memory, just output them
OUTPUT "data.bin"
INCBIN "part1.bin"
INCBIN "part2.bin"
INCBIN "part3.bin"
OUTEND
; you can also add SHELLEXEC to delete part files, if you want...
ENDIF
works already in 1.18.0+, no need to wait for me...
I'm not very happy about that "&" syntax, I know SAVETRD has now something similar, but... me not like.
The work-around above seems to me reasonable enough to not work on this.
(but if it would be my own project, I would actually have it as Makefile rules, with final:
Код:
data.bin : part1.bin part2.bin part3.bin
cat $^ > $@
- assuming you have GNU make and *NIX system, on windows the "cat 1.bin 2.bin 3.bin > data.bin" may not work? I think windows have some different way... copy /b ?? I don't remember.)