home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 131
/
Tiger_Disk_131_2005-07-22_Tiger-Crew-Disk_de_Side_B.d64
/
auto_create
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
78 lines
5 print"[147] [215]orking........"
10 dimg%(50):open15,8,15
20 mx=0:pb$="":od=3:fl=0:g1=32:p=2:s=1:ct=0:cn=0:bt$=chr$(167)+chr$(2)
30 l=peek(49152):fort=1tol:pb$=pb$+chr$(peek(49152+t)):next:goto70
40 input#15,e1$,e2$,e3$,e4$
50 ifval(e1$)<20thenreturn
60 printe1$;e2$;e3$;e4$:stop
70 open2,8,2,"#"
80 print#15,"u1";2;0;18;s
90 gosub40
100 get#2,a$,b$
110 s2=asc(b$+chr$(0)):s3=asc(a$+chr$(0))
120 close2
130 open2,8,2,"#"
140 print#15,"u1";2;0;18;s
150 gosub40
160 print#15,"b-p";2;p
170 forj=1tog1
180 get#2,a$:g%(j)=asc(a$+chr$(0))
190 next:close2
200 pm$="":forj=4to19:ifg%(j)=160then220
210 pm$=pm$+chr$(g%(j))
220 next
230 ifpb$=pm$then280
250 iffl=1thenfl=0:g1=32:p=2:s=s2:goto70
260 p=p+32:ifp=226theng1=30:fl=1:goto130
270 g1=32:goto130
280 t=g%(2):s=g%(3)
290 open2,8,2,"#"
300 print#15,"u1";2;0;t;s
310 print#15,"b-p";2;0
320 get#2,a$,b$
330 close2
340 a$=a$+chr$(0):b$=b$+chr$(0)
350 t1=asc(a$):s1=asc(b$)
360 open2,8,2,"#"
380 print#15,"b-p";2;128
390 print#2,bt$;
395 print#15,"u2";2;0;t;s
400 close2
410 open2,8,2,"#"
420 print#15,"u1";2;0;t1;s1
430 print#15,"b-p";2;0
440 get#2,a$,b$
450 close2
460 a$=a$+chr$(0):b$=b$+chr$(0)
470 t=asc(a$):s=asc(b$)
480 open2,8,2,"#"
500 print#15,"b-p";2;128
510 forx=1to128:print#2,chr$(32);:next
515 print#15,"u2";2;0;t1;s1
520 close2
530 open2,8,2,"#"
540 print#15,"u1";2;0;t;s
550 print#15,"b-p";2;0
560 get#2,a$,b$
570 close2
580 a$=a$+chr$(0):b$=b$+chr$(0)
590 t1=asc(a$):s1=asc(b$)
600 open2,8,2,"#"
620 print#15,"b-p";2;2
630 forx=1to254:print#2,chr$(32);:next
635 print#15,"u2";2;0;t;s
640 close2
650 ct=ct+1:ifct=3then670
660 t=t1:s=s1:goto530
670 l=len(pb$):pa$=left$(pb$,l-2)
671 print"[147] [193]uto-[194]oot [195]omplete!"
672 print"[201] have created a new program called:"
673 print"[158]"chr$(34)pb$chr$(34)
674 print"[212]his is a [211]tand-[193]lone conversion of"
675 print"your program: [158]"chr$(34)pa$chr$(34)
676 print"[158]load"chr$(34)pb$chr$(34)",8,1"
677 print"[215]ill load and auto-start your program!"
679 poke808,237
680 poke631,5:poke632,145:poke633,145:poke634,145:poke635,145:poke636,145:poke198,6
690 new