@dom Could the cp/m adam disk routines for appmake be borrowed to make a CLI tool for creating Adam format CP/M disks with multiple files on them?
The Adam CP/M format is somewhat whacko, (interleaving preserved in the image? really? and why in the hell did the directory start in the middle of a track?!) so I need to put together a tool to make disks that have the output of my FujiNet CP/M tools...
-Thom
[appmake] borrowing cp/m adam disk routines.
Re: [appmake] borrowing cp/m adam disk routines.
Sometimes I think the formats are quirks from the first person to dump a disc! I usually copied the format from the CP/M boot disc since that was guaranteed to work!
The code in appmake does support writing multiple files in one "session", but it's not been exposed via config options: you just need to open the disc image then repeatedly call disc_write_file() with the extra files: it's probably a generally useful feature so if you fancy raising a PR....
The code in appmake does support writing multiple files in one "session", but it's not been exposed via config options: you just need to open the disc image then repeatedly call disc_write_file() with the extra files: it's probably a generally useful feature so if you fancy raising a PR....
Re: [appmake] borrowing cp/m adam disk routines.
So, that felt like a fun thing to do, so I just did it. Hopefully this will work for your usecase:
It should support any number of --add-file options.
Code: Select all
zcc +cpm -subtype=adam adv_a.c -create-app -Cz--add-file=adv_a.c
Re: [appmake] borrowing cp/m adam disk routines.
love it ! is it valid for all the cp/m types?