home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1993 August
/
64er_Magazin_93-08_1993_Markt__Technik_de_Side_A.d64
/
vlir
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
43 lines
10 rem ** vlir -> seq wandler **
20 rem (w) 1992 by claus faerber
30 dim tr(255),se(255)
40 poke53280,14:poke53281,14:printchr$(8)chr$(14)
50 print""spc(10)"[214]lir -> [211]eq [215]andler"
60 print" (w) mcmxcii by [195]laus [198]aerber"
70 print"":input "[209]uelllaufwerk : ? 8[157][157][157]";ql
80 :input "[218]iellaufwerk : ? 8[157][157][157]";zl
90 input"[209]uellfile :";qi$
100 input"[218]ielfile :";z$
110 q$="":forx=1tolen(qi$):a$=mid$(qi$,x,1):a=asc(a$)
120 ifa>191anda<234thena$=chr$(a-192+96)
130 ifa>223anda<255thena$=chr$(a-224+160)
140 ifa=255thena$=chr$(126)
150 a=asc(a$)
160 ifa>64anda<91thena$=chr$(a+32)
170 ifa>96anda<123thena$=chr$(a-32)
180 a=asc(a$):ifa>122thena$="?"
190 q$=q$+a$:next:open15,ql,15,"i":ifql-zlthenopen14,zl,15,"i"
200 rem *** zeiger in der datei lesen
210 az=0:open1,ql,2,q$+",u,r":gosub380
220 get#1,a$,b$:ifa$=""thengoto240
230 tr(az)=asc(a$+chr$(0)):se(az)=asc(b$+chr$(0)):az=az+1:ifst=0goto220
240 gosub380:close1
250 open1,zl,2,z$+",p,w":open2,ql,3,"#":
260 fory=0toaz-1:tr=tr(y):se=se(y):po=2
270 print#15,"u1 3 0";tr;se:gosub380
280 get#2,a$,b$:tr=asc(a$+chr$(0)):se=asc(b$+chr$(0))
290 print#15,"b-p 3"po
300 get#2,a$:po=po+1:ifa$=chr$(17)thenpo=po+26:goto340
310 ifa$=chr$(23)thenpo=po+3:goto340
320 ifa$=chr$(16)thenpo=po+4:goto340
330 print#1,a$;
340 ifpo>255or(tr=0andse<po)thenpo=po-254:onsgn(tr)goto270:goto360
350 goto290
360 next:close1:close2:close15:ifql-zlthenclose14
370 run
380 print"":
390 :get#15,a$:printa$;:ifa$<>chr$(13)then390
400 ifql=zlthenreturn
410 :get#14,a$:printa$;:ifa$<>chr$(13)then410
420 return