Xref: utzoo comp.sys.amiga.programmer:1397 comp.sys.amiga.hardware:7015 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!gondwana19!krooglik From: krooglik@ecr.mu.oz.au (Alex Krooglik) Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware,aus.computers.amiga Subject: Device interaction Keywords: trackdisk device Message-ID: <7041@munnari.oz.au> Date: 11 Mar 91 01:42:35 GMT Sender: news@cs.mu.oz.au Lines: 21 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________________________|