home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Brotikasten
/
BROTCD01.iso
/
geos
/
geos26.d64
/
notizendruck
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
1995-08-05
|
2KB
|
90 lines
10 REM * NOTIZENDRUCK * * F.W. (C)03.1989 *
20 DIMNO(128,2)
30 PRINTCHR$(147);CHR$(14)
40 PRINT" [206]OTIZEN DRUCKEN!":PRINT
50 PRINT" [194]ITTE [206]OTES-[196]ISKETTE EINLEGEN":PRINT
60 PRINT" UND EINE [212]ASTE DRUECKEN!":PRINT:PRINT
70 GETA$:IFA$=""THEN70
80 OPEN5,8,15,"I"
90 OPEN3,8,3,"#"
100 T=18:S=1
110 SC$="[206]OTES":SG$=""
120 FORI=1TOLEN(SC$)
130 A=ASC(MID$(SC$,I,1))
140 GOSUB840
150 SG$=SG$+CHR$(A)
160 NEXTI
170 PRINT#5,"U1:"3;0;T;S
180 PRINT#5,"B-P:"3;0
190 GOSUB830:NT=A
200 GOSUB830:NS=A
210 BP=2:GE=0
220 FORI=1TO8
230 PRINT#5,"B-P:"3;BP
240 GOSUB830:FT=A
250 GOSUB830:TT=A
260 GOSUB830:SS=A
270 FI$=""
280 IFFT=0THEN350
290 FORJ=1TO16:GOSUB830
300 IFA=160THENJ=16:GOTO320
310 FI$=FI$+A$
320 NEXTJ
330 PRINTFI$
340 IFFI$=SG$THENPRINT"[206]OTES GEFUNDEN!",TT,SS:I=10:GE=1:GOTO360
350 BP=BP+32
360 NEXTI
370 IFGE=0THENIFNT>0THENT=NT:S=NS:GOTO170
380 IFGE=0THENPRINT"[204]EIDER KEINE [206]OTES GEFUNDEN!":CLOSE5:END
390 IFTT<0ORTT>35THENPRINT"[198]EHLER!":END
400 PRINT#5,"U1:"3;0;TT;SS
410 ANZ=0:BP=2
420 PRINT#5,"B-P:"3;BP
430 GOSUB830:NT=A:PRINTNT
440 GOSUB830:NS=A:PRINTNS
450 IFNT<1ORNT>35ORNS>21THEN490
460 NO(AN,1)=NT:NO(AN,2)=NS:PRINTNT,NS
470 AN=AN+1:BP=BP+2:
480 IFAN<127THEN420
490 IFAN=0THENPRINT"[203]EINE [211]EITEN!":CLOSE5:END
500 FORI=0TOAN-1:PRINT"------------------------------"
510 PRINT"[211]EITE: ";I+1
520 X=1
530 T=NO(I,1):S=NO(I,2)
540 IFT<1ORT>35THENPRINT"[198]EHLER!":CLOSE1:CLOSE5:END
550 PRINT#5,"U1:"3;0;T;S
560 PRINT#5,"B-P:"3;2
570 GOSUB830
580 IFA=0THEN630:GOSUB870
590 IFA>31THENPRINTCHR$(A);
600 IFA=13THENX=1:PRINTCHR$(A);
610 IFX>30THENIFA=32THEN:X=1:PRINTCHR$(13);
620 X=X+1:GOTO570
630 PRINT:INPUT"[206]AECHSTE [211]EITE = [210]ETURN [197]NDE = [209]";N$:IFN$="Q"THENI=AN
640 NEXTI
650 INPUT"[196]RUCKEN J/N";N$
660 IFN$<>"J"THEN820
670 OPEN1,4,7
680 FORI=0TOAN-1
690 PRINT#1,"-------------[211]EITE ";I+1;"-------------";CHR$(10)
700 X=1
710 T=NO(I,1):S=NO(I,2)
720 IFT<1ORT>35THENPRINT"[198]EHLER!":CLOSE1:CLOSE5:STOP
730 PRINT#5,"U1:"3;0;T;S
740 PRINT#5,"B-P:"3;2
750 GOSUB830
760 IFA=0THEN810:GOSUB870
770 IFA>31THENPRINT#1,CHR$(A);
780 IFA=13THENX=1:PRINT#1,CHR$(A);CHR$(10)
790 IFX>50THENIFA=32THENX=1:PRINT#1,CHR$(A);CHR$(10)
800 X=X+1:GOTO750
810 NEXTI:PRINT#1:CLOSE1
820 CLOSE3:CLOSE5:END
830 GET#3,A$:A=ASC(A$+CHR$(0)):RETURN
840 IFA>64ANDA<91THENA=A+32:RETURN
850 IFA>192ANDA<219THENA=A-128:RETURN
860 RETURN
870 IFA>64ANDA<91THENA=A+128:RETURN
880 IFA>96ANDA<123THENA=A-32:RETURN
890 RETURN