home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 61
/
061.d81
/
critique
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
6KB
|
169 lines
10 gosub60100
20 sys57812"critique.text",8,0:poke780,0:poke781,0:poke782,64:sys65493
30 sys57812"critique.o",8,0:poke780,0:poke781,0:poke782,192:sys65493
40 :
50 poke55,.:poke56,64:clr:dim l$(20),an$(100,8),ad(100),c1$(80),c2$(80)
55 in$=chr$(peek(16385))+chr$(peek(16386))
56 np=val(chr$(peek(16388))+chr$(peek(16389)))
60 poke214,23:print:print" [208][210][197][211][211] [211][208][193][195][197] [212][207] [195][207][206][212][201][206][213][197] [145][145]":poke198,.
70 ifpeek(203)<>60then70
80 :
100 poke53280,11:print"[147][158] [210][197][193][196][197][210] [211][213][210][214][197][217]"
110 print"[154] [215]hich would you like to do?"
120 print" [[198][154]]ill out the reader critique"
130 print" [[210][154]]eturn to [204][207][193][196][211][212][193][210]"
140 print" [208]ress [198] [154]or [210][154]."
150 geta$:ifa$<>"f"anda$<>"r"then150
160 ifa$="r"then60000
170 poke250,7:poke251,64:al$="abcdefghijklmnopqrstuvwxyz":cq=1
180 :
200 st$="[204][207][193][196][211][212][193][210] #"+in$+" [195][210][201][212][201][209][213][197]"
205 ta=20-len(st$)/2:print"[147][158]"tab(ta)st$
210 print"[151][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][157][148][163]"
215 print"[151][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
216 fora=217to242:pokea,peek(a)or128:next
220 ad(cq)=peek(250)+peek(251)*256
225 sys49152,nl%,l$(1):ls=1:el=3:ifcq=np+3thenel=6
230 nc=val(left$(l$(nl%),2)): oo=val(mid$(l$(nl%),3,1))
232 os=val(right$(l$(nl%),1))
235 gosub5000:nl%=nl%+(nc=99)*-7
237 if(nc=.)and(oo)thengosub7100
238 ce=int(8-(nl%+el)/2):print"[154]";:ifce=.then240
239 fora=1toce:print:next:nl%=nl%+(nc=99)*7
240 fora=1tonl%-1:print" "l$(a):next
250 if nc=99 then 400
260 if nc=. and (oo) then gosub9000:goto390
270 tc=peek(214)-nc-1:an$=left$(al$,nc)
275 poke198,.:if(nc)thengosub7000
280 geta$:if(a$<"a"ora$>right$(an$,1))and(a$<>chr$(13))then280
285 ifa$=chr$(13)then340
290 a=asc(a$):cs=a-65
292 if(os)thenpoke214,tc+ls:print:print"[154] "l$(nl%-nc+ls)
294 if(os)and((tc+ls-1)=nl%+ce)and(oo)thengosub8500:an$(cq,2)=""
295 poke214,cs+tc:print:ls=cs
300 ad=peek(209)+peek(210)*256+peek(211)+1
310 if(peek(ad)and128)=.thenprint " " l$(nl%-nc+cs):goto330
320 if(peek(ad)and128)thenprint "[154] " l$(nl%-nc+cs)
325 if ((tc+cs-1)=nl%+ce) and (oo) then gosub8000:an$(cq,2)="":goto280
330 if ((tc+cs-1)=nl%+ce) and (oo) thengosub7100:gosub8000:gosub9000:gosub7000
335 goto280
340 poke214,tc:print
350 fora=1tonc
360 ad=peek(209)+peek(210)*256+peek(211)+1
370 ifpeek(ad)and128thenan$(cq,1)=an$(cq,1)+chr$(64+a)
380 print:next:if(an$(cq,1)="")and(an$(cq,2)="")thengosub9500:goto280
390 cq=cq+1:goto220
395 :
400 print" [154][215]ould you like to return your"
440 print" responses to [204][207][193][196][211][212][193][210] on disk or"
445 print" paper?"
450 print" [208]ress [196] [154]or [208][154]."
460 gosub6000
470 a=peek(203):ifa<>18anda<>41then470
480 ifa=41then700
490 :
500 gosub5000:print" [208]lease insert a disk to hold"
510 print" your response information and"
520 print" press [211][208][193][195][197][154] to continue.":poke198,.
525 print" [206][207][212][197]: [212]his will erase any old"
526 print" critique responses that are on"
527 print" this disk.":poke198,.
530 ifpeek(203)<>60then530
540 gosub6000:poke214,21:print:print" [211]aving your response information..."
550 open15,8,15,"i0":print#15,"s0:critique.rsp":close15
560 open3,8,3,"critique.rsp,p,w"
570 print#3,chr$(13)chr$(13);
580 print#3,in$
590 fora=1tocq
600 print#3,an$(a,1):print#3,an$(a,2)
610 next:close3:goto900
620 :
700 open15,4,15:close15:ifst=.then730
710 gosub6000:poke214,21:print:print" [197][210][210][207][210]: [208][210][201][206][212][197][210] [206][207][212] [196][197][212][197][195][212][197][196]!"
720 fora=1to2000:poke54296,15:poke54296,.:next:gosub6000:goto470
730 gosub6000:poke214,21:print:print" [208]rinting your responses ...":cl=0
732 poke250,7:poke251,64:fora=1to12:sys49152,nl%,l$(1)
733 cl=cl+1:c1$(cl)=l$(1)
734 cl=cl+1:c1$(cl)=an$(a,2): cl=cl+1:c1$(cl)=an$(a,3)
735 cl=cl+1:c1$(cl)=an$(a,4): cl=cl+1:c1$(cl)=" ":next
736 cl=.:fora=13tonp+2:sys49152,nl%,l$(1)
737 cl=cl+1:c2$(cl)=l$(1)
738 cl=cl+1:c2$(cl)=an$(a,2): cl=cl+1:c2$(cl)=an$(a,3)
739 cl=cl+1:c2$(cl)=an$(a,4): cl=cl+1:c2$(cl)=" ":next
745 :
750 sys49152,nl%,l$(1)
755 forb=1tonl%-1:cl=cl+1:c2$(cl)=l$(b):next
760 forb=1to6:cl=cl+1:c2$(cl)=an$(np+3,b+1):next
800 open4,4,7
810 fora=1tota+20:print#4," ";:next:print#4,st$:print#4:tl=0
850 fora=1to60:print#4,c1$(a)spc(40-len(c1$(a)))c2$(a):next
860 :
900 gosub6000:poke214,20:print
910 print" [154][201]nsert a [204][207][193][196][211][212][193][210] disk and"
920 print" [154]press [211][208][193][195][197][154] to return to the menu.":poke198,.
930 ifpeek(203)<>60then930
940 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
950 ifer<>63thenend
960 load"hello connect",8
5000 print"";:fora=1to14
5010 print" ":next:return
6000 poke214,19:print
6010 forb=1to4:print" ":next
6020 return
7000 gosub6000
7005 print" [154][205]ake your selection(s):"
7010 a$="":fora=1tolen(an$)
7020 a$=a$+chr$(asc(mid$(an$,a,1))+128)
7030 ifa<>len(an$)thena$=a$+" "
7040 next:a$=a$+" [154]or [210][197][212][213][210][206]"
7050 ta=20-len(a$)/2+1:print""tab(ta)a$""
7060 return
7100 gosub6000
7105 print" [154][197]nter your response"
7107 print" and press [210][197][212][213][210][206][154]."
7110 return
8000 poke214,cs+tc+1:print
8005 fora=1toel:print" ":next
8010 fora=1toel:print"[145]";:next:return
8500 poke214,ls+tc+1:print
8505 fora=1toel:print" ":next
8510 fora=1toel:print"[145]";:next:return
8900 :
9000 forl=1toel:print"[154]:":next:forl=1toel:print"[145]";:next:poke198,.:forl=1toel
9005 b$="":print"[154]:[164]";:fora=1to38
9010 geta$:ifa$=""then9010
9020 ifa$=chr$(13)thenprint"[157] ":an$(cq,l+1)=b$:return
9030 if(a$<>chr$(20))or(l=1)or(a>1)then9033
9032 print"[157] [145]"tab(38)"[154][164]";:l=l-1:a=38:b$=an$(cq,l+1):an$(cq,l+2)="":goto9010
9033 if(a$<>chr$(20))or(a=1)then9035
9034 a=a-1:b$=left$(b$,a-1):print"[157][157] [157][157][154][164]";:goto9010
9035 if(a=38)and(l=el)then9010
9040 ifa$>=" "anda$<="z"then9070
9050 ifa$>="[193]"anda$<="[218]"then9070
9060 goto9010
9070 b$=b$+a$:print"[157]"a$;:poke212,.:print"[154][164]";:if(a=37)and(l<el)thena=38
9080 next:an$(cq,l+1)=b$:print"[157] ":next
9500 gosub6000:poke214,20:print:print"[150] [217]ou [205][213][211][212] select at least one of the"
9510 print" above items before continuing."
9530 fora=1to3000:next:gosub7000:return
59998 :
59999 :
60000 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
60010 ifer<>63thenend
60020 load"hello connect",8
60098 :
60099 :
60100 poke53280, 0:poke53281, 0:print"[147]";
60101 print"[151][167][163][163][152][163][163][163][163][163][163][155][163][163][163][163][163][163][163][163][163][163][163][163][155][163][163][163][163][163][163][152][163][163][163][163][163][163][151][163][163][165]"
60102 print"[167]LOADSTARPRESENTS:[151][165]"
60103 print"[167][164][164][152][164][164][164][164][164][164][155][164][164][164][164][164][164][164][164][164][164][164][164][155][164][164][164][164][164][164][152][164][164][164][164][164][164][151][164][164][165]"
60104 print"[163][163][163][163][163][154][163][163][163][163][163][163][159][163][163][163][163][163][163][163][163][163][163][163][163][159][163][163][163][163][163][163][154][163][163][163][163][163][163][163][163][163][163][163]