home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1991 December
/
64er_Magazin_91-12_1991_Markt__Technik_de_Side_A.d64
/
tb-data
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
61 lines
10 poke53280,0:poke53281,0:dimd$(500,4):poke650,128:ga=4:sa=7:as=20:g=8
20 print"[155][147]";:restore:fori=1to9:reada$:print"",a$:next:data" [212][194]-[196][193][212][193] "
25 print"":gosub2700:fori=0to4:readf$(i):next
40 getp$:onval(p$)goto100,200,300,400,600,700,900:goto40
100 gosub2400:open1,g,2,n$+",s,r":z=0
110 fori=0to4:input#1,d$(z,i):next:z=z+1:ifst=0thengoto110
120 close1:goto20
200 gosub2400:open1,g,15,"s:"+n$:close1:open1,g,2,n$+",s,w"
210 fori=0toz-1:forii=0to4:print#1,d$(i,ii):nextii,i:close1:goto20
300 print"[147] [197]ingeben [146]",,"[206]r.:"z:gosub2700:gosub2000:f=z:gosub2800:ifx=5then20
330 z=z+1:goto300
400 print"[147] [211]uchen ":gosub2700:gosub2000:ifx=5then20
410 fori=0to4:s$(i)=e$(i):next
420 forf=0toz:x=0:forff=0to4:ifleft$(d$(f,ff),len(s$(ff)))=s$(ff)thenx=x+1
430 next:ifx<>5thennext:goto20
440 gosub2500:print" weiter/aendern/drucken (j/n/a/d) ?[155]"
445 gosub2600:poke781,15:sys59903:ifp$="a"thengosub3000:goto440
447 ifp$="d"thengosub2300:goto440
450 ifp$<>"j"then20
470 nextf:goto20
600 f=0:print"[147]","[196]rucken (j/n) ?[155]":gosub2600:ifp$="j"then800
610 print"[147] [193]rchiv [146]"," +,-,a,d,cr","[206]r.:"f:gosub2700:gosub2505
620 gosub2600:ifp$="+"andf<z-1thenf=f+1
630 ifp$="-"andf<>0thenf=f-1
635 ifp$="a"thengosub3000
637 ifp$="d"thengosub2300
640 ifp$<>chr$(13)then610
650 goto20
700 print"[147] [196]rucker ":gosub2700:print""
710 print"[199]eraeteadresse :",ga:print"[145]",,"[157]";:inputga
720 print"[211]ekundaeradresse :",sa:print"[145]",,"[157]";:inputsa
730 print"[193]bstand links :",as:print"[145]",,"[157]";:inputas:goto20
800 open1,ga,sa:print#1:fori=0toz-1
810 print#1,d$(i,0);" "d$(i,1);:forii=2to4
820 print#1,", "d$(i,ii);:next:print#1:getp$:ifp$=""thenprint#1:next
830 close1:gosub2600:goto20
900 gosub2450:input"[198]eld (1-5)";f:f=f-1
910 fori=0toz-2:forii=itoz-1:print"[147]"i,ii
915 ifd$(i,f)>d$(ii,f)thengosub950
920 nextii,i:goto20
950 forc=0to4:e$=d$(i,c):d$(i,c)=d$(ii,c):d$(ii,c)=e$:next:return
1000 data"(c) by [212]imo [194]ader","1) [204]aden","2) [211]peichern","3) [197]ingeben"
1010 data"4) [211]uchen","5) [193]rchiv","6) [196]rucker","7) [211]ortieren","[214]orname","[206]ame"
1020 data"[211]trasse","[208]lz/[207]rt","[212]el."
2000 x=0:fori=0to4:e$(i)="":print""f$(i),:inpute$(i):ife$(i)=""thenx=x+1
2010 next:return
2300 print"[147]":open1,ga,sa:print#1,spc(as);
2305 print#1,d$(f,0)" ";d$(f,1):print#1,spc(as)d$(f,2)
2307 print#1:print#1,spc(as)d$(f,3)
2310 print#1:close1:gosub2600:return
2400 gosub2450:input"[198]ilename :";n$:return
2450 print"":goto2700
2500 print"[147] [193]usgabe [146]",,,"[206]r.:"f:gosub2700
2505 fori=0to4:print""f$(i),": "d$(f,i)
2510 next:return
2600 poke198,0:wait198,1:getp$:return
2700 fori=1to40:print"[192]";:next:return
2800 fori=0to4:d$(f,i)=e$(i):next:return
3000 print" [193]endern [146] ",,"[206]r.:"f:gosub2700:gosub2000
3010 goto2800