[comp.sys.apple] Setup.system

CMDNESPG@UIAMVS.BITNET (Steven E Nelson) (01/16/88)

SETUP.SYSTEM flawed?

Sean Nolan published a useful program in Nov 1987 Call -APPLE called
SETUP.SYSTEM and placed it in the public domain.  I have found it very
useful for installing my ramdisk driver for my SSD board, and my clock
driver for Mountain Hardware Apple clock card at boot-up (for purist
reasons I prefer not to make a permanent change to ProDOS files on my
disks.)  Well, I found a problem.  If I put SETUP on an Appleworks startup
disk, Appleworks would hang before asking for the program disk.  I'm not sure
which program is at fault, but I choose to change SETUP rather than
Appleworks.  Sorry, Sean Nolan, you asked that the program be unmodified
but I can't refuse the urge.

The problem is SETUP reserves pages $BD and $BE (and $BF) in the system
bitmap, but does not free them before quitting.  Aplworks does not
clear up the bitmap soon enough (or at all?), and not being robust
Aplworks hangs, rather than "erroring" out.

I propose the following change:
delete BD67:A9 CF 8D 6F BF     (LDA #$CF, STA $BF58+23.)  lines 112/113
insert before BDDB:
  BDD6:A9 01 8D 6F BF          (LDA #1, STA $BF58+23.) lines 180.1/180.2

(note the code does not replace code at BDD6, it follows the code that
was there but moved back 5 bytes in the deletion.)

As far as I know now, this change will only be neccessary on appleworks
startup disks.  Hopefully, all other .sys files set their bitmaps
correctly.

If Sean Nolan reads this board, is this modification allowed?

Steven E Nelson, Iowa City, IA
Bitnet mail:  CMDNESPG@UIAMVS

CMDNESPG@UIAMVS.BITNET (Steven E Nelson) (01/16/88)

Errata:

Oops, about my previous post concerning SETUP.SYSTEM.  The deletion
mentioned is STA $BF58 (not $BF6F [$BF58+23.]).  I.E.  do not save
pages 0,1,4-7, but later release pages $BD and $BE.
Steven E. Nelson
Bitnet mail: CMDNESPG@UIAMVS