CAPT - Change Autorun Program Type
by Mark Stock
(c) 2014

CAPT requires an Apple II with at least 48K.

Why change the type of startup program on a DOS 3.3 disk? If you have already initialized a disk and you need to change what type of file runs on startup, such as a binary or text execution file. This also allows you to start programs without checking which Applesoft or Integer BASIC is resident on your system. Of course, it's simple to do this without CAPT if you are preparing a blank disk.


To CAPT without CAPT:

1. Start a DOS 3.3 disk (such as the DOS System Master).
2. Insert your blank disk.
3. Enter the Monitor by typing "CALL -151". You should see a "*" prompt.
4. Store a new number at memory location $9E42.
	a. To BRUN a binary file at startup, type "9E42:34".
	b. To EXEC a text file at startup, type "9E42:14".
5. Exit the Monitor by typing "3D0G" (that's a zero in there).
6. Now INIT the name of your program. For example "INIT HELLO". This will initialize (erase and format) the disk. When the drive stops, you can CATALOG and see a single file, "HELLO" listed.
7. Now DELETE HELLO to remove this dummy program.
8. Use copy your binary or text file onto the new disk. The file should also be named "HELLO".
9. Try it out: PR#6 or restart the computer to make sure your program boots.


Using CAPT

1. Before you run CAPT, make sure the disk you want to change is in the correct drive. CAPT will operate on the last slot/drive number used in DOS.
2. RUN CAPT, and follow the prompt.



How Does It Work?

CAPT is an Integer BASIC program that is essentially a simple sector editor. It locates track $00, sector $D, byte $42 and changes the value to

$06 for RUN
$14 for EXEC
$34 for BRUN

depending on your input. You can accomplish this with any commercial sector editor, but you really need to know what you're doing first.

