[Coco] toolshed beta release

Tormod Volden lists.tormod at gmail.com
Sun Mar 20 09:54:57 EDT 2016


On Sun, Mar 20, 2016 at 11:10 AM, Tormod Volden wrote:
> Are you talking about this "hybrid" disk image hack where a DECB disk
> image is concatenated to a OS-9 disk image, and HDB-DOS adds a magic
> offset for every disk access? To emulate this HDB-DOS feature would be
> possible in Toolshed decb, but it would involve for instance adding
> this magic offset to all seek() calls (and any implicit seeks) in the
> tools and libraries. It might get complicated where for instance the
> library functions open a given file to see what kind of image/file it
> is, and any such offset adjustment only applies to some of the
> files/images involved. BTW, the same auto-detection allows you to use
> the "os9" command to copy into "decb" images because they use the same
> library functions for copying... So adding a DECB file offset will
> require a careful design.

Oh, actually somebody added such functionality to Toolshed:
https://sourceforge.net/p/toolshed/code/ci/default/tree/libdecb/libdecbopen.c#l83
https://sourceforge.net/p/toolshed/code/ci/default/tree/libdecb/libdecbopen.c#l489

It looks like something like this is meant to work (don't know how
well it works):
 decb copy a_file an_image,:5+0x5A000
(for HDBDOS "partition" number 5)
The destination above is probably a file system, don't know if it can
write to the "raw partition".

Tormod


More information about the Coco mailing list