home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 68
/
64er_Magazin_Sonderheft_68_19xx_Markt__Technik_de_Side_B.d64
/
raetsel.mps
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
7KB
|
368 lines
4 sys65409
5 poke56,152:clr
10 poke53280,.:poke53281,.
16 print"[147][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]
18 [153]"(NULL)(NULL)reuzwortraetsel (NULL)ersion 1.e (NULL)
19 print"[221] [221]
20 [153]"(NULL) (NULL)(NULL)(NULL) 801/3 (NULL)ersion 1984-8(NULL)
21 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]
22 [141]5000:[153]"loading...
23 ifpeek(49152)+peek(49153)<>152thenload"such.obj",8,1
24 ifpeek(38912)+peek(38914)<>231thenload"print.obj",8,1
28 clr:print"[147][199]leich...
30 [141]915:[141]600
34 t$[178]"(NULL)tartwort
35 nr=1:gosub654
37 gosub700
44 gosub337:poke142,bs:poke26,0:u=usr(dl)
47 onugoto50,65,70,80
50 getf$
51 iff$="[136]"thengosub650:goto59
52 iff$="[138]"then65
53 iff$="[134]"thengosub740:goto59
54 iff$="[133]"thengosub700:goto60
55 iff$="[135]"thengosub450:goto60
56 iff$="[140]"thengosub092:goto59
57 iff$="[137]"thengosub087:goto59
58 goto50
59 print"";ll$;ll$
60 poke53280,0:poke53281,0:gosub337
61 iffg>0then44
62 goto50
65 ifbs=0thengosub110
66 bs=0:gosub337:goto44
70 rem
71 w=peek(25)
72 fs$(nr)=str$((peek(140)=0))+fw$(w)
73 gosub300:nr=nr+1:iffg>0then44
76 print"";ll$;"";tab(17);
77 print"[159] [215]ortschatz erschoepft "
78 gosub337:fori=1to100:nexti:goto50
80 rem
81 print"";ll$;"[159] [210]aetsel fertig: [146]
82 [153]"atnusdruck mit (NULL)val(NULL)(NULL)(NULL)(NULL) "
83 [146]203,64:[146]203,63
84 [153]"";ll$;ll$:[141]740
85 [137]95
87 [143]
88 f$[178]"(NULL)aetsel loeschen":[141] 4000
89 [139]f$[179][177]"j"[167] [142]
90 [138]30
92 :
93 f$[178]"atnbbrechen":[141]4000
94 [139]f$[179][177]"j"[167] [142]
95 [158]65409:[128]
100 [159]1,8,15:[132]1,a,b$:[153]b$
101 :
110 :
115 [153]"open";ll$;"";[163]18);
116 [153]"(NULL)ortschatz ungenuegend
117 gosub337
118 ifright$(nf$,1)="q"then154
122 dl=int(dm/3)
125 remifav=0thenav=1:goto154
127 ifls=0then154
128 :
130 :
132 print"";ll$;"[159] [215]ortschatz ";
133 print"";nf$;"[146] wird geladen
136 f$[178]nf$:[141]713
154 [142]
300 :
307 sa[178][194](47)[170][194](48)[172]256[170]7
315 [141]350
320 sa[178]sa[170]772
322 [141]350
334 fg[178]fg[171]1:[151]2,fg
337 [153]""nr[171]1;[181](fg[173]og[172]100)"cmd % "bs"cmd "
341 [142]
349 :
350 x[178]sa[170]fg[172]3:y[178]sa[170]w[172]3
354 [151]y,[194](x)
355 [151]y[170]1,[194](x[170]1)
358 [151]y[170]2,[194](x[170]2)
397 [142]
450 [143]
456 [139]ls[178]0[167]ls[178]1:[137]461
458 [139]ls[178]1[167]ls[178]0
461 [151]214,13:[151]211,30:[158]58732
463 [153]"";
464 [139]ls[178]1[167][153]"valinwait";
466 [139]ls[178]0[167][153]"atnus";
497 [142]
600 [143]
606 [151]53265,11:[153]"load";[199](14);[199](8);
610 [153]"open ortantantantantantantantantantantantantantantantantantantantan^"
612 [129]n[178]1[164]20
614 [153]"open (NULL)cont waitopen(NULL)"
616 [130]
618 [153]"open /tantantantantantantantantantantantantantantantantantantantanexp
621 b$="
622 [153]"";
623 a$[178]"(NULL)oerter einlesen"
624 f[178]1:[141]639
625 a$[178]"(NULL)aetsel drucken "
626 f[178]3:[141]639
627 a$[178]"atnutolader aus "
628 f[178]5:[141]639
629 a$[178]"von left$and eingeben"
630 f[178]7:[141]639
631 [153]b$;"f 2waitcmdcmd(NULL)oeschen
632 printb$;"f 4[146][157][157][194]lau aus
633 [153]b$;"f 8waitcmdcmdatnbbrechen";
634 [151]53265,27
636 [142]
639 [153]b$;"f";f;"cmdwaittantantantantantantan^"
640 [143] printb$;"(NULL) (NULL)
641 printb$;"[221]";left$(a$,9);"[221]
642 [153]b$;"(NULL)";[201](a$,9);"(NULL)"
645 [153]b$;"/tantantantantantantantantanexp
646 return
650 rem
651 print"";ll$;ll$
653 t$="[203]reuzwort ([193]bbr=q)"
654 print"
656 l[178]20:m[178]0:[141]1000:m$[178]f$
657 [139]m$[178]"q"[175]nr[177]1[167]685
658 l[178][195](m$):[139]l[179]2[167]656
660 t$[178]m$:[141]2000
662 [151]26,[195](m$):m$[178]m$
663 [146]203,64:u[178][183](0)
664 [139]u[179][177]3[167]685
666 t$[178]"ascragestellung"
667 l[178]36:m[178]1:[141]1000
680 x$[178][196]([194](140)[178]0)
681 fs$(nr)[178]x$[170]f$:nr[178]nr[170]1
682 av[178]0:dl[178]dm
683 [137] 650
685 [142]
700 :
704 [153]"";ll$;ll$
705 t$[178]"(NULL)ortschatz (atnbbr=q)"
706 l[178]14:m[178]1:[141]1000
707 [139]f$[178]"q"[167][153]"";ll$:[137]733
708 [139]f$[178]"$"[167]710
709 f$[178]"+"[170][199](20)[170]f$:[137]712
710 [141]3000:[139]f$[178]""[167]704
712 [153]"";ll$;ll$
713 [159]15,8,15
714 [159]1,8,2,f$[170]",s,r"
715 [132]15,en,en$
716 [139]en[167]728
718 [132]1,fg
719 [151]2,fg
720 [129]n[178]0[164]fg
721 [132]1,kw$(n),fw$(n):[130]
724 [132]1,nf$
725 [132]15,en,en$
726 av[178]0:dl[178]dm:bs[178]1:og[178]fg
728 [153]""[200](ll$,40[171][195](en$))""en$
731 [160]1:[160]15
733 [142]
740 [143]
744 [153]""ll$ll$
745 [153]"open(NULL)aetsel wird gedruckt !
747 sys38912:gosub761:sys65418:gosub824
748 print"[159][204]oesung drucken ? [[202]/[206]]
749 [151]198,.:[146]198,1:[161]a$:[139]a$[178]"n"[167][142]
750 [139]a$[178]"j"[167]900
751 [137]749
761 [159]1,4:[157]1:[153]:[153]"or";
762 [129]n[178]0[164]19:[153]"tantantan";:[130]:[153]"^
765 forze=.to19
766 d=ze*20:ad=s1+d:as=s2+d:aw=s3+d
767 ab=s4+ze*40
772 print" ";
773 forsp=0to19
774 c=peek(as+sp)
775 ifc=0thenprint" ";:goto777
776 printright$(" "+str$(c),3);
777 next
779 gosub820
780 forn=1to3
781 print"[221][146]";
782 forsp=0to19
783 a=166:b=a:c=b
784 ifpeek(ab+sp)=160then790
785 b=32:c=b:ifsp=19then787
786 if(peek(ad+sp)and1)thenc=167
787 a=165:ifsp=0thena=32
788 if(n=1)andpeek(as+sp)>199thena=32
789 if(n=3)andpeek(aw+sp)thena=32
790 printchr$(a)chr$(b)chr$(c);
791 next
792 print"[221][146]";:ifn<3thenprint
793 next
795 gosub820:print" ";
796 forsp=0to19
797 c=peek(aw+sp)
798 ifc=0thenprint" ";:goto800
799 printmid$(str$(c)+" ",2,3);
800 next
802 ifze=19then810
803 gosub820:print" ";
804 forsp=0to19
805 p=ad+sp:c=peek(p)and16
806 ifpeek(ab+sp+40)=160andpeek(ab+sp)=160thenprint" ";:goto809
807 ifcthenprint"[175][175][175]";:goto809
808 print"[164][164][164]";
809 next
810 print:next
812 print"[173]";
813 forn=0to19:print"[192][192][192]";:next
814 print"[189][146]";:print#1:close1
816 return
820 printchr$(141);:return
824 open1,4,7
829 cmd1:print"[211]enkrecht:
830 sw[178]0:[141]838:[153]
832 [153]"(NULL)aagerecht:
833 sw=-1:gosub838:print#1:close1
835 return
838 mz=0:zl=0:f=0:na=1
839 forn=1tonr-1
840 ifval(fs$(n))=swthengosub847
841 nextn
842 m=0:mr=0:bz=0:gosub881:print
844 return
847 nl=len(str$(n))+2
848 l=zl+nl+len(fs$(n))
849 ifl<czthenzl=l:goto861
851 pa=1
852 forp=3tolen(fs$(n))-2
853 ifmid$(fs$(n),p,1)<>" "then855
854 l=zl+nl+p-2:ifl<czthenpa=p
855 nextp
857 ifpa=1thenmz=mz-1:l=zl
858 ifpa>1thenl=zl+nl+pa-2
859 gosub866:mz=0
861 mz=mz+1
863 return
866 bz=int((cz-l)/mz):mr=cz-(l+bz*mz)
867 m=-(mr>0):gosub881
869 na=n+1:l=len(fs$(n)):ifpa>1then873
870 w=n:print";":gosub892:zl=nl+l+3
871 printmid$(fs$(n),3,l);:goto878
873 print"; "left$(ll$,bz);
874 w=n:gosub892:zl=l-pa+2
875 printmid$(fs$(n),3,pa-2)
876 printright$(fs$(n),l-pa);
878 return
881 forp=naton-1
882 ifval(fs$(p))><swthen887
883 iffthenprint"; "left$(ll$,m+bz);
884 iffthenmr=mr+(mr>0):m=-(mr>0)
885 f=1:w=p:gosub892
886 printright$(fs$(p),len(fs$(p))-2);
887 nextp
889 return
892 nl=len(str$(w))-1:print"(";
893 printright$(str$(w),nl)") ";
894 return
900 open1,4,0:cmd1:cr$=chr$(8)+chr$(13)+chr$(15)
902 print:print:print:printspc(20)"loesung:
903 [153][166]20)"ortantantantantantantantantantantantantantantantantantantantan^"cr$;
904 [129]n[178]s4[164]s4[170]760[169]40
905 [153][166]20)"(NULL)";:[129]p[178]n[164]19[170]n
906 [153][199]([194](p));:[130]:[153]"(NULL)"cr$;:[130]
907 [153][166]20)"/tantantantantantantantantantantantantantantantantantantantanexp
908 print#1:close1:return
915 :
925 dimkw$(254),fw$(254),fs$(255):fg=1:og=fg:poke785,0
929 poke2,fg:poke786,192:ls=.:bs=1:sys50016
948 cz=78
950 forn=1to40
952 ll$=ll$+" "
954 next
956 s1=50176:s2=50576:s3=50976:s4=1186:dm=1e4:return
1000 :
1003 x$=chr$(13):y$=chr$(20)
1004 z$=chr$(34)
1005 :
1006 print"[159]";t$;"?[146] ";:poke198,0
1008 f$=""
1009 forn=1tol+1
1010 print"[157]";f$;"[164]";
1011 wait198,1:getf$:poke198,0
1012 iff$=x$then1024
1013 iff$=y$andn>1thenn=n-1:goto1010
1014 ifn>lthen1011
1015 ifm=0then1021
1016 iff$=","orf$=z$then1011
1017 iff$>=" "andf$<="9"then1022
1018 iff$>="[193]"andf$<="[218]"then1022
1021 iff$<"a"orf$>"z"then1011
1022 next
1024 print"[157] [157]"t$;
1026 poke631,13:poke198,1:inputf$
1029 iff$=x$then1005
1030 return
2000 :
2004 print"[154] ([211])enkrecht oder";
2005 print" ([215])aagerecht ? "
2006 wait203,63:getf$
2007 iff$<>"s"andf$<>"w"then2006
2009 print"[146]";ll$;
2010 print"[194]itte [208]osition anfahren
2011 [153]"wait";
2013 fa[178]1186:p[178]fa:f[178][194](fa)
2014 x[178]0:y[178]0:s[178](f$[178]"s"):[151]140,[171]s
2015 mx[178]20[170]l[172](s[178]0)[170](s[178][171]1)
2016 my[178]20[170]l[172](s[178][171]1)[170](s[178]0)
2018 [129]n[178]0[164]9999
2019 [151]p,f:p[178]fa[170]x[170]y[172]40
2020 f[178][194](p):[151]p,94
2021 [161]f$:[139]f$[178][199](13)[167]2028
2022 [139]f$[178]""[167]y[178]y[171]1[172](y[179]my)
2023 [139]f$[178]""[167]x[178]x[171]1[172](x[179]mx)
2024 [139]f$[178]"on"[167]y[178]y[170]1[172](y[177]0)
2025 [139]f$[178]"cmd"[167]x[178]x[170]1[172](x[177]0)
2026 [130]
2028 [151]p,f
2029 [153]"";ll$;ll$;
2031 [151]211,x
2032 [151]214,y
2097 [142]
2150 % 1 ok [154]
3000 [143]
3004 [153]"";ll$;"open";
3005 [153]"(NULL)it (NULL)val(NULL)(NULL)(NULL)(NULL)wait auswaehlen
3006 print"[145][205]it [211][208][193][195][197] [146] weiter
3007 :
3009 [159]15,8,15,"i0":[159]2,8,2,"#
3012 t=18:s=1:f$="
3016 [129]w[178]0[164]99
3020 [152]15,"u1 2 0"t;s
3022 [152]15,"b-p";2;0
3026 [161]#2,x$:t[178][198](x$[170][199](0))
3028 [161]#2,x$:s[178][198](x$[170][199](0))
3032 [129]x[178]0[164]7
3034 [152]15,"b-p";2;x[172]32[170]5
3036 [161]#2,f$
3038 [139]f$[179][177]"+"[167][130]x:[137]3060
3042 [129]y[178]1[164]15
3044 [161]#2,x$:f$[178]f$[170]x$
3046 [139]x$[178][199](160)[167]y[178]15
3048 [130]y
3050 [153]"";[163]24);"";
3052 [153][201](f$,[195](f$)[171]2)
3053 [146]203,64:[146]203,63:[161]x$
3054 [139]x$[178][199](13)[167]3064
3055 [153]"";[163]24);[200](ll$,14)
3056 f$[178]"
3057 nextx
3060 ift=0thenw=99
3061 nextw
3064 close2:close15
3065 print""ll$;ll$
3068 return
4000 print""ll$
4006 print"[159]"f$":[146][211]icher ([202]/[206]) ?
4008 [146]203,64:[146]203,63:[161]f$
4010 [139]f$[179][177]"j"[167][153]"";ll$
4014 [142]
5000 [153]"(NULL)rogrammiert von chr$ert peekuettgenbach
5001 print"[214]erbessert und angepasst an [205][208][211] [196]rucker
5002 [153]"von (NULL)ikolaus left$eusler (NULL)ktober 1986
5003 return