Bootbild
Atari BASIC program with 60 lines.
Description
From the Antic disk of December 1983 (Vol. 2 No. 9).
From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.
What is in this file
Atari BASIC program · 2.1 KB
- Dialect
- Atari BASIC
- Lines
- 60
- Variables
A$,DD(,L,I,CHKSUM,J,D
BASIC listing (60 lines)
10 REM BOOTBUILD by Chuck Hosick for ANTIC MAGAZINE
20 DIM A$(50),DD(146)
30 GOTO 600
40 INPUT A$
50 OPEN #1,8,0,"D:AUTORUN.SYS"
60 PUT #1,255
70 PUT #1,255
80 PUT #1,0
90 PUT #1,56
100 L=146+LEN(A$)-1
110 PUT #1,L
120 PUT #1,56
130 FOR I=1 TO 146 STEP 10:CHKSUM=0
140 IF I+10>146 THEN FOR J=1 TO 147-I:GOTO 160
150 FOR J=1 TO 10
160 READ D:CHKSUM=CHKSUM+D:DD(I+J-1)=D:NEXT J
170 READ D:IF CHKSUM=D THEN NEXT I:GOTO 210
180 ? "↰":? :? "CHECK SUM ERROR AT LINE NO. ";PEEK(184)*256+PEEK(183):CLOSE #1
190 XIO 33,#1,0,0,"D:AUTORUN.SYS"
200 LIST PEEK(184)*256+PEEK(183):END
210 FOR I=1 TO 146
220 D=DD(I)
230 IF I=99 THEN PUT #1,LEN(A$):GOTO 250
240 PUT #1,D
250 NEXT I
260 FOR I=LEN(A$) TO 1 STEP -1
270 PUT #1,ASC(A$(I,I))
280 NEXT I
290 PUT #1,255
300 PUT #1,255
310 PUT #1,226
320 PUT #1,2
330 PUT #1,227
340 PUT #1,2
350 PUT #1,0
360 PUT #1,56
370 CLOSE #1
380 END
400 DATA 169,80,141,0,3,169,1,141,1,3,708
410 DATA 169,63,141,2,3,169,64,141,3,3,758
420 DATA 169,5,141,5,3,141,6,3,169,0,642
430 DATA 141,4,3,141,9,3,141,10,3,141,596
440 DATA 11,3,169,12,141,8,3,32,89,228,696
450 DATA 16,3,76,87,56,162,11,189,0,5,605
460 DATA 157,0,3,202,16,247,32,89,228,48,1022
470 DATA 16,32,6,5,165,12,141,85,56,165,683
480 DATA 13,141,86,56,32,0,0,169,103,141,741
490 DATA 33,3,169,56,141,34,3,169,0,141,749
500 DATA 214,56,96,251,243,51,246,118,56,163,1494
510 DATA 246,51,246,60,246,76,228,243,0,172,1568
520 DATA 214,56,240,9,185,145,56,206,214,56,1381
530 DATA 160,1,96,140,33,3,169,228,141,34,1005
540 DATA 3,169,155,160,1,96,584
600 ? "↰":? :? "BOOTBILD by Chuck Hosick, A.C.A.O.C.":? :? "This program creates an AUTORUN.SYS "
610 ? "program on disc which:":? " 1. Loads the RS-232 handler from"
620 ? " the 850 interface module if:":? " a. you have one and":? " b. it is turned on"
630 ? "and then":? " 2. executes an immediate mode":? " BASIC command which you enter."
640 ? " For example - RUN";CHR$(34);"D:MENU":? :? " ENTER YOUR BASIC COMMAND":?
650 GOTO 40
660 END
