[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: Transfering Disk Images using Tape Output
cnetto@softdes.com.br wrote:
> 2) Is there a disk image format without those bits but only with the
> acctual data
Not that I know of. But modifying your existing program to send all
the blocks of a disk, regardless of size, through the cassette port
would be easy to do. Use the ProDOS READBLOCK MLI routine. Then, you
need to find a way to extract the bits from the WAV file on the PC. Look
at the ROM monitor routines to see how they interpret a cassette file
as a series of bytes. Experiment, you might be able to use a fairly slow
sampling rate and still be able to read the data.
Oh, the only thing to be aware of with a disk image is the order in
which the data is written to the image file. A ProDOS order (.po) image
is made by simply writing out all the blocks from 0 through 279 in order.
A DOS 3.3 (.dsk) order image is made by writing out all the tracks and
sectors: FOR I=0 TO 34:FOR J=0 TO 15: output track I, sector J: NEXT J,I
You can also use ProDOS MLI routines to make DOS 3.3 order images with
some switching of data in memory. DSK2FILE works this way. See here:
http://net-24-42.dhcp.mcw.edu/dsk2file.html
Source code is included. (Forth)
A good idea, good luck! If you do get it working you will have added
another useful tool to the Apple II toolbox!
Ron Kneusel
rkneusel@mcw.edu