[comp.sys.mac] Reducing disk swaps on 2 floppy Macs

lsr@Apple.COM (Larry Rosenstein) (06/02/88)

I remembered this discussion from a few weeks ago, and for fun looked into
what was going on.  (Synopsis: people were wondering about using an LRU
algorithm for ejecting disks in the disk switch dialog.  Sometimes you have
2 floppy drives but the system only uses one of them.)

It turns out that the code to allow Command-Shift-0/1/2 during a disk switch
was added to the Mac Plus ROM at the same time that Command-. was added to
abort the disk switch.  (You did know that Command-. will abort the disk
switch and return a "volume not available" error, right?)

It turns out, that the code has a bug.  Instead of checking for ASCII
characters $30-$32, it checks for $00-$02.  (Note that Mac SE & Mac II users
can use Command-Shift-Control-@/A/B to generate these characters and
actually eject the diskettes during a disk switch!  I don't have a machine
to try this one, but it should work.)

I was able to write a small INIT file that watches for Command-Shift-0/1/2
during a disk switch and posts a keystroke that the ROM will recognize.  I
have tried this on a Mac Plus and it seems to work.  I don't have a
Mac SE or Mac II with 2 floppy drives to try it out on those machines.
(I also don't know if it will work on 64K ROM machines.)

Before posting this in general, I would like to have a couple of people try
it out a bit more.  So if you have a Mac SE or Mac II with 2 (or 3) floppy
drives, and are willing to be a guinea pig for this, send me mail.

-- 
		 Larry Rosenstein,  Object Specialist
 Apple Computer, Inc.  20525 Mariani Ave, MS 27-AJ  Cupertino, CA 95014
	    AppleLink:Rosenstein1    domain:lsr@Apple.COM
		UUCP:{sun,voder,nsc,decwrl}!apple!lsr