| |
spider-j
Registered: Oct 2004 Posts: 503 |
Merging PRG file(s) with D64 containing DirArt from CLI
I'd finally like to automate the process of merging PRG file(s) with a d64 containing perpared directory art.
But I don't even know which tools I can use for that task (c1541? cc1541?). Or should I do that in python with this here : https://pypi.org/project/d64/ ?!? Is that library any good?
I need a way to get an ASCII compatible output of the dirart d64 that I can modify with a script and write back to a new d64 containing my prg(s) and the del files.
I don't want to do this manually with DirMaster anymore. Especially since the versions > v3.x stopped working with WINE and I had to revert to v2.2.009. |
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11433 |
This is one of the tools everyone needs to write at least once :=) cc1541 can do it iirc, and a few others. some loaders have it included (eg bitbreakers). I dont dare to upload mine, it lacks all error checking and is ugly as hell :D |
| |
spider-j
Registered: Oct 2004 Posts: 503 |
Quoting chatGPZand a few others. some loaders have it included (eg bitbreakers)
Thanks for the hint. I see BB has made a seperate tool out of that which can be used without bitfire: https://github.com/bboxy/bitfire/tree/master/d64write
I'll look into that. |
| |
spider-j
Registered: Oct 2004 Posts: 503 |
For completeness sake: Sparta pointed me to his tool here https://csdb.dk/release/?id=236120.
But after a little bit of thinking I'm pretty sure I also can just "head | tail | hexdump | cut" the relevant bytes out of the dirart d64 and then feed the output into cc1541 – which seems to take PETSCII characters in filename with #-prefix. |
| |
GI-Joe
Registered: Sep 2015 Posts: 23 |
Quote: For completeness sake: Sparta pointed me to his tool here https://csdb.dk/release/?id=236120.
But after a little bit of thinking I'm pretty sure I also can just "head | tail | hexdump | cut" the relevant bytes out of the dirart d64 and then feed the output into cc1541 – which seems to take PETSCII characters in filename with #-prefix.
not so complicated !
The arch user repo AUR always contains the latest version of cc1541. You should install it first.
Then you can use the output of ...
cc1541 -a YourDisk.d64
... to insert it 1:1 into the shellscript. For the sake of clarity, I make after each "-L" a "\" and then start a new line. Then the whole command is clearer ;)
Example ShellScript:
# make "Mayday!" Dir-Art with current date ...
{
cc1541 -m -V \
-P -T DEL -N -f "FR#afRF#c0DEED#60FR#afRF" -L \
-P -T DEL -N -f "#b0#c0#c0#b2#c0#b2#b2#ae#b0#b2#c0#b2#b2#ae#b0#ae" -L \
-P -T DEL -N -f "#dd #dd #dd#dd#ab#bd#dd #dd#dd#dd#dd#dd" -L \
-P -T DEL -N -f "#dd#dd#dd#dd#dd#dd #dd#dd#dd#dd#dd #dd#dd#dd" -L \
-P -T DEL -N -f "#dd#dd#dd#dd #ab #dd #dd #ab #dd#ab#b3" -L \
-P -T DEL -N -f "#ad#b1#b1#b1#b1#b1#c0#b1#c0#b1#b1#b1#c0#bd#ad#bd" -L \
-P -T DEL -N -f " on $DateString " -L \
-P -T DEL -N -f "FR#afRF#c0DEED#60FR#afRF" -L \
"$FinalDiskImageFile"
} |
| |
spider-j
Registered: Oct 2004 Posts: 503 |
Quoting GI-Joecc1541 -a YourDisk.d64
Thanks for the hint. That -a switch is (almost) exactly what I was looking for and didn't find when I tried RTFM :-) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11433 |
If it could be useful to have that sort of output in petconv - file a feature request :) |