[appmake] borrowing cp/m adam disk routines.

Post Reply
tschak909
Member
Posts: 117
Joined: Sun Sep 09, 2018 5:44 pm

[appmake] borrowing cp/m adam disk routines.

Post by tschak909 »

@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
User avatar
dom
Well known member
Posts: 1554
Joined: Sun Jul 15, 2007 10:01 pm

Re: [appmake] borrowing cp/m adam disk routines.

Post by dom »

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....
User avatar
dom
Well known member
Posts: 1554
Joined: Sun Jul 15, 2007 10:01 pm

Re: [appmake] borrowing cp/m adam disk routines.

Post by dom »

So, that felt like a fun thing to do, so I just did it. Hopefully this will work for your usecase:

Code: Select all

zcc +cpm -subtype=adam adv_a.c -create-app -Cz--add-file=adv_a.c
It should support any number of --add-file options.
tschak909
Member
Posts: 117
Joined: Sun Sep 09, 2018 5:44 pm

Re: [appmake] borrowing cp/m adam disk routines.

Post by tschak909 »

*hug* :)
stefano
Well known member
Posts: 1704
Joined: Mon Jul 16, 2007 7:39 pm

Re: [appmake] borrowing cp/m adam disk routines.

Post by stefano »

love it ! is it valid for all the cp/m types?
User avatar
dom
Well known member
Posts: 1554
Joined: Sun Jul 15, 2007 10:01 pm

Re: [appmake] borrowing cp/m adam disk routines.

Post by dom »

Yes it is.
Post Reply