home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun: Greatest Hits
/
rerun-greatest-hits-vol-i.d64
/
autorun
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
957b
|
29 lines
10 print"[147]instructions on screen or printer (s,p)?";
20 geta$:d=-3*(a$="s")-4*(a$="p"):ifd=0then20
30 opend,d
40 print#d,"autorun 64 lets you convert existing
50 [152]d,"basic programs into autorun programs
60 print#d,"that will automatically run when loaded.
70 [152]d,"to convert an existing program on disk
80 print#d,"called 'test', just load & run autorun.
90 [152]d,"at the filename prompt, enter the name
100 print#d,"'test' & press return. after autorun is
110 [152]d,"finished running, you can load the new
120 print#d,"version of 'test' as follows:
125 [152]d,""
130 [152]d,"load"[199](34)"test"[199](34)",8,1
131 print#d,""
140 print#d,"it will then automatically load & run
150 [152]d,"for you.
160 print#d,""
170 close d
180 print"to run autorun, just press any key
190 [153]"now. when the program finishes loading,
200 print"it will automatically run."
210 geta$:ifa$="" then 210
211 print"[147]":poke53281,6:poke53280,14:poke646,14
220 print"load"chr$(34)"autorun"chr$(34)",8[145][145][145]"
230 a$="run"+chr$(13)
240 poke631,13:forb=1tolen(a$):poke631+b,asc(mid$(a$,b,1)):next:poke198,10
250 new