krooglik@ecr.mu.oz.au (Alex Krooglik) (03/11/91)
I have been programming the drive directly now for a couple of weeks and I am writing a boot block loading program. It works fine for small programs (ie. under 1 track length). However, I now wish to put larger programs on and I am having problems doing so. I will explain what I have been doing. I use DOS library Open() and Read() to get my file into memory after an AllocMem(). I then open my device and set up my MsgPort structure. (This is all being done in 68k). I initalize my first IOStdReq structure and use DoIO() to send it. This first packet simply sends the first track (ie 22*512) bytes of information to the disk. I then have a small subroutine that increases the buffer pointer by (22*512) and the block offset (io_Offset) by the same amount. I do this 13 times because my program is 13 tracks long and when I run it, it doesn't crash but the drive sits there aimlessly flashing its light. WHAT AM I DOING WRONG? --------krooglik@ecr.mu.OZ---- + Alex Krooglik |________________ + Faculty of Chemical Engineering |__________ +_______University of Melbourne________________________|