home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 153
/
153.d81
/
b.bootrunner
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
53 lines
2 poke56,160:poke55,0:clr
4 dv=peek(186):ifdv<8thendv=8
10 poke53280,0:poke53281,0:print"[147]"
20 print"[129] [212]he [205]ighty [204][207][193][196][211][212][193][210] [159][194][207][207][212][210][213][206][206][197][210]"
30 print"[154] [212]his program will create a file that
32 [153]" will automatically run a second file
34 print" when the first file is loaded with a
36 [153]" ,d,1cont ending, where dcont is the drive #.
50 print"[154] [194][207][207][212][210][213][206][206][197][210] [198]ilename: ";:l9%=16:gosub50000:n$=q9$
52 print"[154] [198]ile [194][207][207][212][210][213][206][206][197][210] boots: ";:gosub50000:f$=q9$
54 print"[154] [195]reating [155]"n$:print"[154] to boot 'n' run [155]"f$
60 form=24408to24666:pokem,2:next
70 form=24667to24732:readd:pokem,d:next
90 n=len(f$):poke24682,n:forb=1ton
100 poke24716+b,asc(mid$(f$,b)):next
120 print"[154] [208]ress [210][197][212][213][210][206][154] to save."
122 poke198,0
130 getk$:ifk$<>chr$(13)then130
140 print"[158] [211]aving[154][145]"
150 open15,dv,15,"s0:"+n$:close15
152 open15,dv,15:open5,dv,5,n$+",p,w"
160 a$=chr$(0):print#5,a$;
170 a$=chr$(1):print#5,a$;
180 for n=24408to24732:p=peek(n)
190 a$=chr$(p):print#5,a$;
200 next:close5:close15:forn=24717to24732:poken,32:next
210 print" [196]one! "
212 print" (1[154]) [196]o another disk.
214 [153]" (2cont) (NULL)uit to peekatn(NULL)right$len.
220 geta$:ifa$="1"then run
230 ifa$="2"thenend
240 goto220
250 data 169,000,032,144,255,169,002
260 data 166,186,160,001,032,186,255
270 data 169,009,162,053,160,002,032
280 data 189,255,162,255,160,255,169
290 data 000,032,213,255,134,045,132
300 data 046,169,000,133,122,169,008
310 data 133,123,032,096,166,076,174
320 data 167,032,032,032,032,032,032
330 data 032,032,032,032,032,032,032
340 data 032,032,032
10000 d=peek(186):n$="b.bootrunner":open15,d,15,"s0:"+n$:close15:saven$,d:end
50000 q9$="":u9=53280:poke198,0
50010 geta$
50020 poke646,rnd(1)*15+1:print"[164][157]";:ifa$=""then50010
50030 ifa$=chr$(13)thenprint" ":return
50040 if(a$=chr$(20)andlen(q9$))thenq9$=left$(q9$,len(q9$)-1):goto50080
50050 iflen(q9$)>=l9%thent9%=peek(u9):pokeu9,1:pokeu9,t9%:goto50010
50060 ifa$<" "or(a$>chr$(127)anda$<chr$(160))ora$=chr$(34)then50010
50070 q9$=q9$+a$
50080 print""a$;:goto50010