[comp.sys.amiga.programmer] trackdisk devi e

krooglik@ecr.mu.oz.au (Alex Krooglik) (03/05/91)

  I need help on the following topic. I am using the trackdisk device to write
a boot block loader and so far everything is working OK (for small programs).
However, I now wish to put a large program on the disk and read it in track
by track. I do this by loading my program via DOS calls Open() and Read()
and stuff it in memory pointed to by AllocMem(). I then open my trackdisk
device and set it up to do a write and surely it does the first write from
the buffer to track 2 fine. I am using DoIO() for all tracker calls. Now,
when I increment the memory pointer by (22*512) and the tracker offset by
(22*512) and call DoIO, the drive blinks incessantly. I am doing this in a loop
as the program I have loaded is 13 tracks worth. Can someone pleased advise
me, in the form of code or otherwise, what I am doing wrong and how I should
go about correcting myself.


						Alex Krooglik
						Dept of Chem Eng
						Uni of Melbourne
						Oz
						krooglik@ecr.mu.oz