Re: [cc65] assembling files into d64's

Date view Thread view Subject view

From: David Holz (davidh_at_otterspace.com)
Date: 2003-09-18 16:05:58


From: "Todd Elliott" <eyeth_at_videocam.net.au>
> Secondly, is there a commandline utility or switch to ca65/grc that will
> insert the newly-created programs into a .d64/.d81 disk image? As it
> stands, when I'm done compiling my GEOS program using ca65/grc, I have to
> use StarCommander to insert these .CVT's into a .d81 disk image. After a
> few debug/compile/edit cycles, this process has become somewhat tedious.

I've never used GEOS files, but this .bat file inserts everything from a
subdirectory (1st commandline parameter) into a .d64 of that directory's
name, if you're using DOS/Windows.  It obviously requires c1541 from the
VICE package, and it's easy to change to a .d81.

@echo off

if NOT "%1" == "" goto paramsFine

:paramsError
echo Usage: %0 dirname
goto done

:paramsFine

if NOT "%2" == "" echo on

rem --- Assemble the .d64 ---
echo format %1,id d64 %1.d64>asdf
echo delete *>>asdf
for %%i in (%1\*) do echo write bin/%%~ni>>asdf
echo quit>>asdf
type asdf | c1541 %1.d64 > nul
erase asdf

:done

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-09-18 15:56:17 CEST