Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!spool.mu.edu!munnari.oz.au!gondwana12!krooglik From: krooglik@ecr.mu.oz.au (Alex Krooglik) Newsgroups: comp.sys.amiga.programmer Subject: trackdisk devi e Message-ID: <6991@munnari.oz.au> Date: 5 Mar 91 06:58:40 GMT Sender: news@cs.mu.oz.au Lines: 20 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