[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple GEOS file structures unveiled - now with AppleCommander command-line support
On 3/8/2012 6:52 AM, Oliver Schmidt wrote:
[...]
From the cc65 developers perspective it would of course be great if
CiderPress and/or AppleCommander would allow to place the output file
of the cc65 linker directly in an Apple GEOS disk image as Apple GEOS
file, thus superseding the additional convert step.
With that gauntlet thrown down, who could resist? AppleCommander
command line support has been added to properly place cc65-produced GEOS
files on ProDOS images. John Matthews has posted the 1.3.5.11 build in
the AC download page:
https://sites.google.com/site/drjohnbmatthews/applecommander
This pico-release adds the -geos argument. Given a GEOS file in
Oliver's CONVERT format:
http://wiki.cc65.org/doku.php?id=cc65:apple2:geosconvertformat
AC can be invoked like so to place that file on a disk image:
java ac.jar -geos disk.po < file.cvt
Since the CONVERT format includes a filename and other ProDOS atributes
as part of the specification, there's no need to add anything more on
the command line. If you like to do things by hand, though, you can
achieve the same result this way:
java ac.jar -p disk.po foo GEO < file.cvt
Again, since the CONVERT spec includes all of the ProDOS attributes, the
filename (foo) and filetype (GEO/0x82) are actually overwritten and/or
ignored as part of the process. But the presence of GEO as filetype is
the thing that triggers the special GEOS handling.