[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fast or direct load from disk. New tool: c2d.



On Feb 28, 5:43 pm, mmpho...@macgui.com ( mmphosis) wrote:
> Antoine Vignau wrote:
> > On 24 f v, 23:20, Egan Ford <dataj...@gmail.com> wrote:
> >> Hugh, perfect. A simple solution for a lazy programmer. It may not
> >> be the fastest solution, but it was the fastest to implement. Thanks
> >> again for everyone's help.
>
> >> I just posted c2d (code to disk) tohttp://asciiexpress.net/files. I
> >> included the source with OS/X and Windows binaries.
>
> >> c2d will take a single binary (with or without 4-byte DOS header) or a
> >> text monitor listing and create a bootable diskette (dsk) image.
>
> > Interesting work, Egan.
>
> > Do you have final disk images examples somewhere?
>
> > antoine
>
> I created a boot disk with c2d: APPLE-1 for Apple II...http://hoop-la.ca/apple1/
>
> make c2d
>
> tr ‘[:upper:]‘ ‘[:lower:]‘ < apple1.hgr2.8000.bin.hex.txt | hex2bin
>
> > apple1.hgr2.8000.bin
>
> /c2d apple1.hgr2.8000.bin,8000 apple1-boot.dsk
>
> http://hoop-la.ca/apple1/apple1-boot.dsk

c2d can also read a hex listing with the following rules:

1.  Must end in .mon
2.  Must have an address on the first line, others are ignored.
3.  Must have a space after the :

e.g.:

perl -pi -e 's/:/8000: /' <apple1.hgr2.8000.bin.hex.txt
>apple1.hgr2.8000.bin.hex.mon

then

c2d apple1.hgr2.8000.bin.hex.mon apple1-boot.dsk

If you are interested I created you an audio file for use with Apple
IIs without a disk controller:

perl -pi -e 's/:/ /' <apple1.hgr2.8000.bin.hex.txt | \
perl -pi -e 's/[\n\r]//g' | \
perl -pi -e 's/^/8000: /' >apple1.hgr2.8000.bin.hex.mon

c2t -2 apple1.hgr2.8000.bin.hex.mon apple1-boot2.aif

Reading apple1.hgr2.8000.bin.hex.mon, type monitor, segment 1, start:
0x8000, length: 3840

Writing apple1-boot2.aif as Apple II formatted aiff.

To load up and run on your Apple II, type:

        CALL -151
        8000.8EFFR
        8000G