home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 25
/
Tiger_Disk_025_19xx_Tiger-Crew-Disk_de_Side_D.d64
/
b.waschmas
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
6KB
|
145 lines
10 code=7*4096:vars=5*4096+6*256
11 i=0:info=0:ac=peek(36862)-1:gr=peek(code+3)+peek(code+4)*256:gosub1100
12 gosub1200:b=vars+7+2+((peek(vars+1)-1)*67):x=peek(b+3)and128:k=peek(b+0)
15 k=k+(peek(b+1)*256):k=k+(peek(b+2)*65536):k=k+((peek(b+3)and127)*16777216)
18 ifx=128thenk=-k
19 gosub54000:gosub1100:gosub10000:syscode,19,3,3,4,4,i
21 syscode,3:poke1024+17*40+7,29:poke1024+17*40+12,27
22 print"[155][212]yp";i+1;"[157][160]"
23 print"[201]nfo[203]aufen[214]erkaufen"
24 syscode,6,3:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3:goto300
45 poke2,0
50 cl=peek(2):ifcl=0then50
55 poke2,0:ifcl=99thensyscode,1,"l.einricht",8
61 ifcl=1then300
62 ifcl=2then200
63 ifcl=3then250
64 ifcl=4then400
65 ifcl=5then1400
66 ifcl=6then1500
140 goto50
200 ifi>=9then50
210 i=i+1:syscode,19,3,3,4,4,i:syscode,3:print"[212]yp";i+1;"[157][160]"
216 syscode,6,3:goto50
250 ifi<=0then50
260 i=i-1:syscode,19,3,3,4,4,i:syscode,3:print"[212]yp";i+1;"[157][160]"
266 syscode,6,3:goto50
300 info=0:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3
315 syscode,4,3,24,6:syscode,5,i:print""tab(24)"[203]onto:";k:gosub2900
338 print""tab(24)"[208]reis:";p:syscode,6,3:goto50
400 ifinfo=0then500
410 ifinfo=1then600
420 ifinfo=2then700
430 ifinfo=3then800
440 ifinfo=4then900
450 ifinfo=5then1000
460 print"[147]error !!!!":end
500 info=info+1:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16
503 syscode,6,3:gosub1100:gosub1200:print""tab(24)"[218]ur maximalen"
511 print""tab(24)"[193]uslastung":print""tab(24)"ben*tigen[160][211]ie:"
513 print""tab(23)"";ax;"[215]aschmaschinen"
514 print""tab(23)"";bx;"[197]inrichtungen"
515 print""tab(23)"";cx;"[211]anit@ranlagen"
516 print""tab(23)"";dx;"[203]^chen"
517 print""tab(23)"";ex;"[203]^hlschr@nke"
518 print""tab(24)"[211]ie[160]besitzen:"
519 print""tab(23)"";ay;"[215]aschmaschinen"
520 print""tab(23)"";by;"[197]inrichtungen"
521 print""tab(23)"";cy;"[211]anit@ranlagen"
522 print""tab(23)"";dy;"[203]^chen"
523 print""tab(23)"";ey;"[203]^hlschr@nke":syscode,6,3:goto50
600 info=info+1:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3
610 print""tab(24)"[215]aschmaschinen:":print""tab(24)"[212]yp[160][160][193]nzahl"
613 print""tab(24)"-----------":print""tab(24)" 1 0"
615 print""tab(24)" 2 0":print""tab(24)" 3 0"
617 print""tab(24)" 4 0":print""tab(24)" 5 0"
619 print""tab(24)" 6 0":print""tab(24)" 7 0"
621 print""tab(24)" 8 0":print""tab(24)" 9 0"
623 print""tab(24)"10 0":gosub1200:print"";:forl=0toaz
650 print"";:next:print"";ay:syscode,6,3:goto50
700 info=info+1:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3
710 print""tab(24)"[197]inrichtungen:":print""tab(24)"[212]yp[160][160][193]nzahl"
713 print""tab(24)"-----------":print""tab(24)" 1 0"
715 print""tab(24)" 2 0":print""tab(24)" 3 0"
717 print""tab(24)" 4 0":print""tab(24)" 5 0"
719 print""tab(24)" 6 0":print""tab(24)" 7 0"
721 print""tab(24)" 8 0":print""tab(24)" 9 0"
730 gosub1200:print"";:forl=0tobz:print"";:next
760 print"";by:syscode,6,3:goto50
800 info=info+1:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3
810 print""tab(24)"[211]anit@ranlagen:":print""tab(24)"[212]yp[160][160][193]nzahl"
813 print""tab(24)"-----------":print""tab(24)" 1 0"
815 print""tab(24)" 2 0":print""tab(24)" 3 0"
817 print""tab(24)" 4 0":print""tab(24)" 5 0"
819 print""tab(24)" 6 0":print""tab(24)" 7 0"
830 gosub1200:print"";:forl=0tocz:print"";:next
860 print"";cy:syscode,6,3:goto50
900 info=info+1:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3
910 print""tab(24)"[203]^chen:":print""tab(24)"[212]yp[160][160][193]nzahl"
913 print""tab(24)"-----------":print""tab(24)" 1 0"
915 print""tab(24)" 2 0":print""tab(24)" 3 0"
917 print""tab(24)" 4 0":print""tab(24)" 5 0"
919 print""tab(24)" 6 0":print""tab(24)" 7 0"
921 print""tab(24)" 8 0":print""tab(24)" 9 0"
923 print""tab(24)"10 0":gosub1200:print"";:forl=0todz
950 print"";:next:print"";dy:syscode,6,3:goto50
1000 info=0:syscode,3:syscode,4,3,24,3:syscode,7,96,16,16:syscode,6,3
1010 print""tab(24)"[203]^hlschr@nke:":print""tab(24)"[212]yp[160][160][193]nzahl"
1013 print""tab(24)"-----------":print""tab(24)" 1 0"
1015 print""tab(24)" 2 0":print""tab(24)" 3 0"
1017 print""tab(24)" 4 0":print""tab(24)" 5 0"
1019 print""tab(24)" 6 0":print""tab(24)" 7 0"
1021 print""tab(24)" 8 0":print""tab(24)" 9 0"
1023 print""tab(24)"10 0":gosub1200:print"";:forl=0toez
1050 print"";:next:print"";ey:syscode,6,3:goto50
1100 rem
1110 rt=peek(vars+7+1+(peek(vars+1)-1)*67):rb=vars+7+67*4+6+rt*16:ax=peek(rb+0)
1150 bx=peek(rb+1):cx=peek(rb+2):dx=peek(rb+3):ex=peek(rb+4):goto10000
1200 rem
1210 w=gr+7+ac*31+(peek(vars+2)-1)*31*6:ay=peek(w+5):by=peek(w+6):cy=peek(w+7)
1250 dy=peek(w+8):ey=peek(w+9):az=peek(w+0):bz=peek(w+1):cz=peek(w+2):dz=peek(w+3)
1310 ez=peek(w+4):return
1400 gosub2900:gosub1200:ifay=axthengoto3000
1410 poke(w+0),i:poke(w+5),ax:k=k-(p*ax):iv=iv+(p*ax):gosub2000:info=0:goto400
1500 gosub2900:gosub1200:ifay=0thengoto50
1506 ifaz<>ithengoto3100
1510 poke(w+0),0:poke(w+5),0:k=k+(p*ax):iv=iv-(p*ax):gosub2000:info=0:goto400
2000 qk=k:b=vars+7+2+((peek(vars+1)-1)*67):x=0:ifk<0thenk=k-k-k:x=128
2030 poke(b+3),int(k/16777216):k=k-(int(k/16777216)*16777216):poke(b+2),int(k/65536)
2060 k=k-(int(k/65536)*65536):poke(b+1),int(k/256):k=k-(int(k/256)*256):poke(b+0),k
2100 poke(b+3),peek(b+3)orx:k=qk:goto 55000
2900 ifi=0thenp=22000
2901 ifi=1thenp=18000
2902 ifi=2thenp=25000
2903 ifi=3thenp=16000
2904 ifi=4thenp=21000
2905 ifi=5thenp=25000
2906 ifi=6thenp=30000
2907 ifi=7thenp=27000
2908 ifi=8thenp=18500
2909 ifi=9thenp=22300
2910 return
3000 goto50
3100 goto50
10000 w=gr+ac*31+(peek(vars+2)-1)*31*6:yy=peek(w+3)and15:ax=ax*yy:bx=bx*yy
10040 cx=cx*yy:dx=dx*yy:ex=ex*yy:return
54000 b=vars+1643+((peek(vars+1)-1)*8)
54002 x=peek(b+3) and 128
54003 iv=peek(b+0)
54004 iv=iv+(peek(b+1)*256)
54005 iv=iv+(peek(b+2)*65536)
54006 iv=iv+((peek(b+3) and 127)*16777216)
54007 if x=128 then iv=-iv
54010 return
55000 b=vars+1643+((peek(vars+1)-1)*8)
55020 x=0:if iv<0then iv=iv-iv-iv:x=128
55030 poke(b+3),int(iv/16777216)
55040 iv=iv-(int(iv/16777216)*16777216)
55050 poke(b+2),int(iv/65536)
55060 iv=iv-(int(iv/65536)*65536)
55070 poke(b+1),int(iv/256)
55080 iv=iv-(int(iv/256)*256)
55090 poke(b+0),iv
55100 poke(b+3),peek(b+3) or x
55200 return