home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 15
/
015.d81
/
bacteriolab
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
50 lines
1 ifx=0thenx=1:load"ml bacteriolab",8,1
5 dimc%(1000):poke53280,11:poke53281,0
10 c=55296:print"[147]"chr$(142);:sys 49600 :poke 650,128
12 forx=ctoc+1000:pokex,0:c%(x-55296)=0: next
20 get a$:a=peek(c+k):pokec+k, not(aand1)and(aor1)
25 ifa$="k"then1000
27 ifa$="l"then2000
28 ifa$="_"then63000
29 ifa$="[147]"then10
30 if a$="*" then s=1:d=1:goto 150
40 if a$=chr$(13) then200
50 if a$="" then d=1:goto 150
60 if a$="[157]" then d=-1:goto 150
70 if a$="" then d=40:goto 150
80 if a$="[145]" then d=-40:goto 150
90 if a$=" " then s=0:d=1:goto 150
100 for i=1 to 100:next:goto20
150 poke c+k,s:c%(c+k-55296)=sand15: k=k+d:ifk>999ork<0thenk=k-d
160 s=peek(c+k):goto 20
200 poke c+k,s:sys 49310:goto3000
900 :
1000 rem save a file added by l.s.
1010 print"[147] save [146]"
1020 print"filename (x=exit)";
1030 inputf$:iff$="x"then3000
1040 open2,8,2,f$+",s,w"
1050 forx=0to999:print#2, mid$(str$(c%(x)),2);:next
1060 print" done [146]":fordl=1to800:next: goto3000
1070 :
2000 rem load a file added by l.s.
2010 print"[147] load [146]"
2020 print"filename (x=exit)";
2030 inputf$:iff$="x"then3000
2040 open15,8,15
2060 open2,8,2,f$
2070 input#15,er,er$
2080 ifer<19then2100
2090 print"[147] error !": print"code :"er;er$
2095 fordl=1to800:next:goto3000
2100 forx=0to999:get#2,c$:c%(x)=val(c$): next
2110 print" done [146]":fordl=1to800:next: goto3000
2200 :
3000 rem reset screen added by l.s.
3005 close2:close15
3010 sys49600:forx=ctoc+1000:poke53280, x-(int(x/256)*256):pokex,c%(x-c):next
3020 goto20
63000 rem connect to l.s.
63010 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
63020 poke631,13:poke632,13:poke198,2: end