[comp.sys.mac] Apple CD-ROM Init Speedup

andyp@gvgpvd.GVG.TEK.COM (Andy Peterman) (12/09/89)

If you have been finding your inits seem to take forever to finish when
you start up your Mac, here's a speedup patch for one of the worst
offenders, the Apple CD-ROM Init.  This init scans all 7 SCSI addresses 
looking for your CD-ROM, a potentially time consuming task, especially if 
you don't have your CD-ROM turned on (I turn mine off when I'm not using 
it because its so noisy).  The init normally starts looking at SCSI address 
0 and keeps going up through address 6, unless it finds the CD-ROM first.  
Each address check takes a few seconds.

The following patch will allow you to tell the init to check only the
specific address (or range of addresses) that you have set your CD-ROM
to.  Once you have made the patch, all you need to do is modify a resource
within the file to change it to any other address.  Make this patch ONLY to
version 2.0 of the Apple CD-ROM file.

1.  Open the Apple CD-ROM (Version 2.0) Init file with ResEdit.

2.  Open the INIT 1 resource.

3.  At an offset of 0012, change 42 53 to 4E 71.

4.  At an offset of 006C, change 34 93 4E 75 to 60 00 03 40

5.  At the end of the resource (offset of 3AE) add the following:
    34 93 45 FA FF 94 34 AB 00 02 45 FA FD 50 34 AB 00 04 4E 75

6.  Close the INIT 1 resource.

7.  Open the INLP 0 resource.  It should contain just two bytes, 0001.
    This value is the number of times the code will scan the range of
    SCSI addresses.

8.  Add two 16 bit values to indicate the starting address to check and
    the ending address + 1 to stop at.  For example, if your CD ROM is set
    to SCSI address 3, then this resource should contain 0001 0003 0004.
    To retrun to the normal scan of all SCSI addresses (0 to 6), then the
    resource should contain 0001 0000 0007.

9.  Close the resource and the file.  If you're a using virus protection
    program, it may give you a warning.  This is normal since you just
    modified an INIT resource.


    Andy Peterman
    andyp@gvgpvd.gvg.tek.com

DISCLAIMER:  The opinions and information expressed here are my own.
I'll assume no responsibility if this patch erases your CD-ROM.