I've been playing around with the CPC, as you do... I've been able to create disk images with a single executable file OK but I couldn't find a way, with the standard tools, to add multiple executable files to a disk image. After much searching I found the utility below which can be built on Linux. It seems to work well so I thought I'd share it with everyone.
https://github.com/neuro-sys/sector-cpc
Let me know if there are any better alternatives.
IH.
.dsk images containing multiple files
Re: .dsk images containing multiple files
The normal tools for this something like cpmtools combined with libdsk.
The disc image generating code with appmake is capable of writing multiple files to a disc image: the +3 generator does it, it's just never really been needed before.
Patches and enhancements are accepted!
The disc image generating code with appmake is capable of writing multiple files to a disc image: the +3 generator does it, it's just never really been needed before.
Patches and enhancements are accepted!
Re: .dsk images containing multiple files
Thanks for the info. Let me take a look at how appmake for the +3 does it. Maybe I can port it to the cpc.
IH.
IH.
Re: .dsk images containing multiple files
I ported the memory banking support in appmake from the +3 to the CPC. This is what I was after. The changes have been merged to the master branch. Works like a charm for .dsk images and .wav audio files.
IH.
IH.
Re: .dsk images containing multiple files
It’s a great feature. Thank you!
I’ll spend some time in a week or so getting banked programs working for C compilations.
I’ll spend some time in a week or so getting banked programs working for C compilations.
Re: .dsk images containing multiple files
Let me know if I can help. I was a speccy kid so doing 30+ years of catch-up programming the CPC. I'm a big believer is learning by doing.
IH.
IH.
Re: .dsk images containing multiple files
Thanks, your crt file was a big help.
I've got the crt0 loading the banks now (based off your code/ideas) and have banked calling working. It's not an exciting picture, but here's a screenshot of the banked example:
In theory the mechanism should also work with RAM expansions (I assume up to 512k just page into segment 1) though there's no placeholders or anything like that here.
I've got the crt0 loading the banks now (based off your code/ideas) and have banked calling working. It's not an exciting picture, but here's a screenshot of the banked example:
In theory the mechanism should also work with RAM expansions (I assume up to 512k just page into segment 1) though there's no placeholders or anything like that here.
You do not have the required permissions to view the files attached to this post.