Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!unido!rmi!kkaempf From: kkaempf@rmi.UUCP (Klaus Kaempf) Newsgroups: comp.sys.amiga Subject: Re: Boot-block contest ( ) Keywords: .tech (split? vote NO!) Message-ID: <878@rmi.UUCP> Date: 13 Feb 88 14:36:46 GMT Reply-To: kkaempf@rmi.de (Klaus Kaempf) Organization: RMI Net, Aachen, W.Germany Lines: 34 Posted: Sat Feb 13 15:36:46 1988 In <2798@dasys1.UUCP> kb@dasys1.UUCP (Stan Ziel) writes: > But is there really anything useful to put in the boot > block? I mean if you want to do anything at boot time, > there is the startup-sequence to use. Yes, there is. No, the startup-sequence might be too late. The following is untested, but it should work. Both the trackdisk.device and the AmigaDOS won't allocate buffers for unused drives, so it will give you a bit of extra MEMF_CHIP. Might be necessary for some games or if you don't have enough RAM. Never needed it because I got 4.5megs and I find programming much more fascinating than playing games. :-) Try inserting something like this in your bootblock: #include /* ... whatever you want ... */ struct DiskResource *dr; if((dr = OpenResource(DISKNAME)) != NULL) { dr->dr_UnitID[1] = dr->dr_UnitID[2] = dr->dr_UnitID[3] = DRT_EMPTY; } /* ... fire up AmigaDOS ... */ !ralph Ralph Babel, Falkenweg 3, D-6204 Taunusstein, FRGermany