BASIC AUTORUN.SYS maker (ARSMAKE.BAS)
BASIC AUTORUN.SYS maker, 13
Description
BASIC AUTORUN.SYS maker, 13
From the Antic disk of May 1985 (Vol. 4 No. 1).
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 · 1.5 KB
- Dialect
- Atari BASIC
- Lines
- 42
- Variables
A$,B$,L,I,D
BASIC listing (42 lines)
10 REM ARSMAKER.BAS
20 REM - ABC'S OF THE ATARI COMPUTERS
30 REM REPRINTED IN ANTIC MAGAZINE
40 GRAPHICS 0:DIM A$(128),B$(12)
50 ? :? " This program creates a"
60 ? "disk file called AUTORUN.SYS"
70 ? "which will RUN a SAVEd BASIC program.":? "when the disk is booted.":?
80 ? " To create an AUTORUN.SYS file for"
90 ? "the program ";CHR$(34);"D:MENU";CHR$(34);", for example,"
100 ? "you'd type MENU and press [RETURN].":?
110 ? " The resulting AUTORUN.SYS file":? "would RUN any program called MENU.":?
120 ? :? "ENTER FILENAME TO AUTORUN";:INPUT B$
130 A$(1,6)="RUN D:":A$(4,4)=CHR$(34):A$(7,7+LEN(B$))=B$:A$(7+LEN(B$))=CHR$(34)
140 OPEN #1,8,0,"D:AUTORUN.SYS"
150 ? #1;"▶▶♥╱";
160 L=123+LEN(A$)-1
170 PUT #1,L
180 PUT #1,6
190 FOR I=1 TO 123
200 READ D
210 IF I=64 THEN PUT #1,LEN(A$)-1:GOTO 230
220 PUT #1,D
230 NEXT I
240 FOR I=LEN(A$) TO 1 STEP -1
250 PUT #1,ASC(A$(I,I))
260 NEXT I
270 ? #1;"▶▶b▕c▕♥╱";
280 CLOSE #1
290 END
300 DATA 162,0,189,26,3,201,69,240,5,232
310 DATA 232,232,208,244,232,142,105,6,189,26
320 DATA 3,133,205,169,107,157,26,3,232,189
330 DATA 26,3,133,206,169,6,157,26,3,160
340 DATA 0,162,16,177,205,153,107,6,200,202
350 DATA 208,247,169,67,141,111,6,169,6,141
360 DATA 112,6,169,10,141,106,6,96,172,106
370 DATA 6,240,9,185,123,6,206,106,6,160
380 DATA 1,96,138,72,174,105,6,165,205,157
390 DATA 26,3,232,165,206,157,26,3,104,170
400 DATA 169,155,160,1,96,0,0,0,0,0
410 DATA 0,0,0,0,0,0,0,0,0,76
420 DATA 0,0,0
