APPENDIX NINETEEN _________________________________________________________ XL/XE Programs BASIC Software Toggle This is a version of the BASIC switcher routine used in a public do- main program called "RamMaster," available on the Gateway BBS, St. Louis, Missouri, used here with permission by its author, Matt Ratcliff. The program creates an AUTORUN.SYS file which prompts you to turn BASIC on and off; there's no need to hold down the OP- TION key when booting a disk. When you turn it off from DOS, you gain the 8K RAM it occupies; DOS takes advantage of this memory space for copy and disk duplication routines. Refer back to the XL/XE memory map for more information. 800XL BASIC Switcher 10 GRAPHICS 0:DIM A$(10):? "800XL BASIC SWI TCHER" 15 PRINT "By Matthew Ratcliff 3/25/85" 20 PRINT :PRINT "GET DOS DISK READY AND PRE SS RTN;" 25 INPUT A$ 30 TRAP 200:OPEN #1,8,0,"D:AUTORUN.SYS" 40 RESTORE 50 READ A:IF A<0 THEN 100 60 PUT #1,A:GOTO 50 100 CLOSE #1:PRINT "BASIC SWITCHER READY." 105 PRINT "PUT THIS FILE ON ALL YOUR 'BASIC '" 110 PRINT "PROGRAMMING DISKS.":PRINT 115 PRINT "SAVE THIS LOADER AS A BACKUP!" 120 END 200 PRINT "UNEXPECTED ERROR ";PEEK(195) 210 PRINT "AT LINE ";PEEK(186)+256*PEEK(187 ):END 1000 DATA 255,255,0,52,236,53,173,250,3,240 ,1 1005 DATA 96,32,160,53,76,34,52,184,176 1010 DATA 176,216,204,160,194,193,211,201,1 95 1015 DATA 160,211,247,233,244,227,232,229,2 42,155,4 1020 DATA 162,12,160,52,32,120,53,76,56,52, 194 1025 DATA 249,160,205,225,244,170,210,225,2 44 1030 DATA 155,4,162,44,160,52,32,120,53,76, 88 1035 DATA 52,80,114,101,115,115,32,35,32 1040 DATA 97,110,100,32,210,212,206,32,107, 101 1045 DATA 121,58,155,4,162,66,160,52,32,120 1050 DATA 53,76,115,52,91,49,93,32,66,65,83 1055 DATA 73,67,32,160,207,206,160,160,155