home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er
/
64ER_CD.iso
/
91xx
/
9112a.d64
/
&-konverter
(
.txt
)
next >
Wrap
Commodore BASIC
|
1995-03-30
|
862b
|
38 lines
0 REM &-KONVERTER 64'ER 1991 MARKT & TECHNIK VERLAG
1 REM NIKOLAUS HEUSLER, ZWENGAUERWEG 18, 8 MUENCHEN 71 ARR 2.91
5 DIMA%(999)
10 PRINT"[147]KONVERTER FILE -> &FILE NH 02.91
20 [133]"FILENAME ";N$
30 [159]2,8,2,N$[170]",P,R
40 GET#2,A$,B$:IFSTTHENPRINT"FILE NICHT ZU LADEN!":END
50 P=ASC(A$+CHR$(0))+ASC(B$+CHR$(0))*256
60 PRINT"FILE-STARTADRESSE:"P
70 INPUT"LADEADRESSE 1280[157][157][157][157][157][157]";D
80 OPEN3,8,3,"&"+N$+",U,W
90 [161]#2,A$
100 C[178]C[170]1:A%(C)[178][198](A$[170][199](0))
110 [139]ST[178]0[137]90
120 [153]"FILELAENGE:"C"BYTES
130 A=1
140 IFC<1THEN280
190 DH=INT(D/256):DL=D-DH*256
200 CK=DH+DL:GOSUB300
210 PRINT#3,CHR$(DL)CHR$(DH);
220 IFC<256THEN400
230 PRINT#3,CHR$(255);:CK=CK+255:GOSUB300
240 FORI=ATOA+254
250 CK=CK+A%(I):GOSUB300
260 PRINT#3,CHR$(A%(I));
270 NEXT:PRINT#3,CHR$(CK);
275 C=C-255:D=D+255:A=A+255:GOTO140
280 CLOSE3:CLOSE2:PRINT"FERTIG
290 [128]
300 [139]CK[177]255[167]CK[178]CK[171]255:[137]300
310 [142]
400 [152]3,[199](C);:CK[178]CK[170]C:[141]300
410 [129]I[178]A[164]A[170]C[171]1
420 CK[178]CK[170]A%(I):[141]300
430 [152]3,[199](A%(I));
440 [130]
450 [152]3,[199](CK);:[137]280