home *** CD-ROM | disk | FTP | other *** search
Wrap
5 dr=peek(186) 10 : rem ---------------------------- 15 : rem q-link programmers' workshop 20 : rem 12/24/89 25 : rem ---------------------------- 30 a$="":ml=49152:ifpeek(ml)+peek(ml+1)+peek(ml+2)<>213thenload"seq2print.ml*",dr,1 35 poke53280,15:poke53281,0:print"[155][147]"+chr$(14); 40 cd$="" 45 l=5:c=10:gosub455:print"[154][211][197][209][213][197][206][212][201][193][204] [212][207][160][208][210][201][206][212][155]":print" [210]eads a [211][197][209] text file and converts it":print" to [208][210][201][206][212] statements in a program in":print" memory." 50 input" [193]nleitung j[157][157][157]";yn$ 55 if yn$="j" then gosub 815 100 : rem ------------ 105 : rem check drives 110 : rem ------------ 115 open 15,8,15:close 15:dimd(15):for i=0 to 15:d(i)=-1:next 120 for i=8 to 14:open 15,i,15:close 15:d(i)=st:next:pd=8:sd=8:mode$="create":cm$="p[208]s[211]m[205]f[198]n[206]l[204]b[194]":cn=len(cm$) 125 sf$="textfile":pf$="progfile":sl=1000 200 : rem --------------------- 205 : rem main menu entry point 210 : rem --------------------- 215 print"[147] [154][211][197][209][213][197][206][212][201][193][204] [212][207][160][208][210][201][206][212][155]":f=0 220 print" [154][208][155]rogram drive: 225 [153]" cont(NULL)listequential drive: 230 print" [154][205][155]ode: 235 [153]" contasclistile name of (NULL)val(NULL): 240 print" [154][206][155]ame of [208][210][199] file: 245 [153]" cont(NULL)listine to start at: 250 print" [154][194][155]egin operation 255 [141] 415:[141] 420:[141] 425:[141] 430:[141] 435:[141] 445 260 [161] a$:[139] a$[178]"" [167] x[178][184](0):[137] 260 265 cm[178]0:[129] i[178]1 [164] cn:[139] a$[178][202](cm$,i,1) [167] cm[178][181]((i[170]1)[173]2) 270 [130]:[145] cm [141] 315,330,345,360,375,390,520:[139] f [167] 215 275 f[178]0:[137] 260 300 : [143] -------------------- 305 : [143] do selected function 310 : [143] -------------------- 315 pd[178](pd[170]1)[175]15:[139] pd[179]8 [167] pd[178]8 320 [139] d(pd) [167] 315 325 [141] 415:[142] 330 sd[178](sd[170]1) [175] 15:[139] sd[179]8 [167] sd[178]8 335 [139] d(sd) [167] 330 340 [141] 420:[142] 345 [139] mode$[178]"create" [167] mode$[178]"append":[137] 355 350 mode$[178]"create" 355 [141] 425:[141] 435:[141] 445:[142] 360 l[178]15:c[178]1:[141] 455:[133]"(NULL)val(NULL) file name";sf$ 365 [139] sf$[178]"$" [167] f$[178]"s":dd[178]sd:[141] 715:sf$[178]a$[170]"" 370 f[178]1:[142] 375 l[178]15:c[178]1:[141] 455:[133]"(NULL)(NULL)chr$ file name";pf$ 380 [139] pf$[178]"$" [167] f$[178]"p":dd[178]pd:[141] 715:pf$[178]a$[170]"" 385 f[178]1:[142] 390 l[178]15:c[178]1:[141] 455:[133]"(NULL)ine # to start at";sl:[139] (sl[177]65000) [176] (sl[179]1) [167] sl[178]1000 395 f[178]1:[142] 400 : [143] ------------------------- 405 : [143] screen update subroutines 410 : [143] ------------------------- 415 l[178]5:c[178]18:[141] 455:[153]"cont"pd" list":[142] 420 l[178]6:c[178]18:[141] 455:[153]"cont"sd" list":[142] 425 l[178]7:c[178]19:[141] 455:[153]"cont"mode$" list":[142] 430 l[178]8:c[178]19:[141] 455:[153]"cont"sf$" list":[142] 435 l[178]9:c[178]19:[141] 455:[139] mode$[178]"create"[167] [153]" ":[142] 440 [153]"cont"pf$" list":[142] 445 l[178]10:c[178]18:[141] 455:[139] mode$[178]"append"[167] [153]" ":[142] 450 [153]"cont"sl" list":[142] 455 [153]""[200](cd$,l)[163]c);:[142] 500 : [143] ----------------------------- 505 : [143] do the job 510 : [143] if no error then will not ret 515 : [143] ----------------------------- 520 [153]"load":[151] 254,sd:[151] 253,pd:[151] 252,[181](sl[173]256):[151] 251,sl [175] 255 525 [139] mode$[179][177]"append" [167] 565 530 [159] 15,pd,15:[159] 2,pd,2,pf$[170]",p,r" 535 [132]15,s,e$,x,x:[139] s[179]20 [167] 560 540 [153]" valrror on (NULL)(NULL)chr$ file: "pf$:[153]" "e$ 545 [153]" (NULL)ress any key to return to menu" 550 [161] a$:[139] a$[178]"" [167] 550 555 [160] 2:[160] 15:f[178]1:[142] 560 [151] 570,[195](pf$):[129] i[178]1 [164] [195](pf$):[151] 570[170]i,[198]([202](pf$,i,1)):[130] 565 [160] 2:[160] 15:[159] 15,sd,15:[159] 2,sd,2,sf$[170]",s,r" 570 [132]15,s,e$,x,x:[139] s[179]20 [167] 595 575 [153]" valrror on (NULL)val(NULL) file: "sf$:[153]" "e$ 580 [153]" (NULL)ress any key to return to menu" 585 [161] a$:[139] a$[178]"" [167] 585 590 [160] 2:[160] 15:f[178]1:[142] 595 : 600 : [143] sys to append or create ml 605 : 610 [139] mode$[178]"append" [167] [158] ml[170]3:[143] no return - append 615 [158] ml[170]6:[143] no return - create 620 [144] 700 : [143] ------------------------- 705 : [143] show directory and select 710 : [143] ------------------------- 715 [153]"load";:a$[178]" ":f$[178]"$0:*="[170]f$ 720 [159] 15,dd,15:[159] 7,dd,0,f$:[132]15,s,e$,x,x:[139] s[179]20 [167] 740 725 [160] 7:[160] 15:[153]:[153]"valrror opening directory":[153] s;e$:[153]" (NULL)ress any key to return to menu." 730 [161] a$:[139] a$[178]"" [167] 730 735 f[178]1:[142] 740 [158] ml[170]9:f[178]1:[160]7:[160]15:[142] 800 : [143] ------------ 805 : [143] instructions 810 : [143] ------------ 815 [153]"load atn(NULL)(NULL)valright$(NULL)(NULL)(NULL)chr$" 820 [153]" (NULL)val(NULL) to (NULL)(NULL)right$(NULL)(NULL) liest ein (NULL)val(NULL) (NULL)extfile 825 print" von [196]isk und erzeugt [208][210][201][206][212]-[211]tatements 830 [153]" in einem peekatn(NULL)right$len-(NULL)rogramm. str$u kannst 835 print" den [205][207][196][197] [195][210][197][193][212][197] waehlen, der das [208]ro- 840 [153]" gramm mit der gezeigten (NULL)eile beginnt. 845 print" [207]der [196]u waehlst [205][207][196][197] [193][208][208][197][206][196] und ein 850 [153]" (NULL)rogramm wird zuerst geladen und die 855 print" [208][210][201][206][212]-[211]tatements werden dann an dieses 860 [153]" angehaengt. 870 print 875 print" [213]m eine [207]ption anzuwaehlen, drueckst 880 [153]" str$u das reverse (NULL)eichen. 885 print" [215]enn nach einem [198][201][204][197][206][193][205][197][206] gefragt ist, 890 [153]" kannst str$u entweder diesen eingeben - 895 print" oder [196]u gibst das '$'-[218]eichen ein, 900 [153]" dann wird str$ir das str$irectory gezeigt. 910 print" [194]itte eine [212]aste druecken" 915 get a$:if a$="" then 915 920 run