!lm12
!rm76
Handy EXEC Files........................Bob Sander-Cederlof

Now that I have my Firmware card with Integer BASIC on it plugged into slot 4, I am all too frequently needing to fix those two bytes in DOS.  For some reason I don't get around to putting the patched DOS onto every disk.  But with a few EXEC files I can make the patches very easily now.

The first EXEC file, which I call INT, is like this:

!lm16
CALL -151         (get into the monitor)
C081              (turn off the language card, if on)
C0C1              (turn off the firmware card, if on)
A5B8:C0           (patch DOS to use firmware card)
A5C0:C1
3D3G              (return to DOS and Applesoft)
INT               (enter Integer BASIC)

!lm12
The second file I use to load LANGASM into the Language Card (see Paul Schlyter's article elsewhere in this issue of AAL).  Here is what it looks like:

!lm16
CALL-151          (get into the monitor)
C0C1              (turn off the firmware card, if on)
C081 C081         (write enable the language card)
BLOAD LANGASM     (load LANGASM into the language card)
A5B8:80           (patch DOS to use the language card)
A5C0:81
3D3G              (return to DOS and Applesoft)
INT               (enter the assembler)

!lm12
The third EXEC file I use to patch DOS back to its normal mode of using the language card in slot 0.  If I have already loaded the S-C Assembler II (LANGASM) into that card, but was using Integer BASIC, EXEC ASM will get me back to the assembler.

!lm16
CALL-151          (get into the monitor)
C081              (turn off the language card, if on)
C0C1              (turn off the firmware card, if on)
A5B8:80           (patch DOS to use the language card)
A5C0:81
3D3G              (return to DOS and Applesoft)
INT               (enter the assembler)

!lm12
Just for fun, here is one more EXEC file.  This one copies the contents of the firmware card in slot 4 into the language card in slot 0.  A much faster way of loading it with Integer BASIC than running HELLO on the DOS 3.3 System Master!

!lm16
CALL-151          (get into the monitor)
C0C0              (turn on the firmware card)
1000<D000.FFFFM   (copy firmware card into mother RAM)
C0C1              (turn off the firmware card)
C081 C081         (write enable language card)
D000<1000.3FFFM   (copy stuff into the language card)
3D0G              (return to DOS)

!lm12
If you don't have an editor that will help you build EXEC files like these, here is a short Applesoft program which will do it.  I have also included a short program to display the file, in case you need to do that.

Both of these programs CALL 64874, which is the Apple Monitor subroutine to read a line into the system buffer starting at $200.  The CALL -3288 in READ EXEC FILE is to fix the ONERR stack pointer.
