Home » CEEFAX disks » telesoftware1.adl » Utils/NLQPRNT
Utils/NLQPRNT
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » CEEFAX disks » telesoftware1.adl |
Filename: | Utils/NLQPRNT |
Read OK: | ✔ |
File size: | 05A5 bytes |
Load address: | 1A00 |
Exec address: | 801F |
File contents
10REM ********************** 20REM NLQ printout routine 30REM NLQ text file printout 40REM (c) P.A.Crook 1986 50REM ********************** 60 70DIM O% 32 80ONERRORGOTO420 90*NLQ 100MODE7 110PRINT"�"+CHR$157+CHR$141+" �Near Letter Quality Printout. "'"�"+CHR$157+CHR$141+" �Near Letter Quality Printout. " 120VDU28,0,24,39,3 130INPUT'"�Name of file to print."'"�"F$ 140X%=OPENUP(F$):IF X%=0THENCLOSE#X%:PRINT'"�"+CHR$157+"�File does not exist.":GOTO130 150E%=EXT#X%+&2000:CLOSE#X% 160PROCoscli("LO."+F$+" 2000") 170INPUT'"�Number of characters wide for the left �margin ?"'"�"L% 180INPUT'"�Number of characters per line ?"'"�"W% 190IF L%+W%>80PRINT'"�"+CHR$157+"�Margin and line length exceeds"'"�"+CHR$157+"�80 characters. Please re-enter.":GOTO170 200INPUT'"�Line feed pitch in 1/72 of an inch."'"�"Y% 210PRINT'''"�Preview (Y/N)" 220A%=GETAND&DF:IFA%=ASC"Y"THENMODE3:VDU14:PROCprint:A%=GET:MODE7:GOTO210 230IF A%<>ASC"N"THEN220ELSEPRINT'"�"+CHR$157+"�Check printer is ready then press"'"�"+CHR$157+"�any key.":A%=GET 240VDU2,1,27,1,64,3 250PROCoscli("CODE1,"+STR$Y%):MODE3:PROCprint:*CODE0 260GOTO100 270 280DEFPROCprint 290P%=&2000:A$="" 300REPEAT 310P$=STRING$(L%," ")+A$ 320A$="":REPEATA%=?P%:IFA%>33THENA$=A$+CHR$A% 330P%=P%+1:UNTILA%<33ORP%=E% 340IF P%=E% THEN A%=13 350IFA%=32ANDLENP$+LENA$<(W%+L%-1)THENP$=P$+A$+" ":GOTO320 360IFLENP$+LENA$<=(W%+L%)THENP$=P$+A$:A$="":GOTO390 370IFA%<>32ANDLENP$+LENA$<=(W%+L%)THENP$=P$+A$:A$="":GOTO390 380A$=A$+" " 390PRINTP$ 400UNTIL P%=E% 410ENDPROC 420IF ERR=254 AND ERL=90 PRINT"Machine code file NLQ does not exist on this disc.":END 430*CODE0 440VDU7 450REPORT:PRINT" at line ";ERL 460END 470 480DEFPROCoscli(O$) 490$O%=O$ 500X%=O%MOD256:Y%=O%DIV256 510CALL&FFF7 520ENDPROC
� ********************** � NLQ printout routine � NLQ text file printout (� (c) P.A.Crook 1986 2� ********************** < F� O% 32 P��tdA Z*NLQ d�7 nh�"�"+�157+�141+" �Near Letter Quality Printout. "'"�"+�157+�141+" �Near Letter Quality Printout. " x�28,0,24,39,3 �%�'"�Name of file to print."'"�"F$ �AX%=�(F$):� X%=0��#X%:�'"�"+�157+"�File does not exist.":�tB@ �E%=�#X%+&2000:�#X% ��oscli("LO."+F$+" 2000") �?�'"�Number of characters wide for the left �margin ?"'"�"L% �.�'"�Number of characters per line ?"'"�"W% �l� L%+W%>80�'"�"+�157+"�Margin and line length exceeds"'"�"+�157+"�80 characters. Please re-enter.":�tj@ �2�'"�Line feed pitch in 1/72 of an inch."'"�"Y% ��'''"�Preview (Y/N)" �1A%=��&DF:�A%=�"Y"��3:�14:�print:A%=�:�7:�dR@ �]� A%<>�"N"��d\@��'"�"+�157+"�Check printer is ready then press"'"�"+�157+"�any key.":A%=� ��2,1,27,1,64,3 �)�oscli("CODE1,"+�Y%):�3:�print:*CODE0 �Dd@ ��print "P%=&2000:A$="" ,� 6P$=�L%," ")+A$ @"A$="":�A%=?P%:�A%>33�A$=A$+�A% JP%=P%+1:�A%<33�P%=E% T� P%=E% � A%=13 ^/�A%=32��P$+�A$<(W%+L%-1)�P$=P$+A$+" ":�D@A h*�P$+�A$<=(W%+L%)�P$=P$+A$:A$="":�tFA r1�A%<>32��P$+�A$<=(W%+L%)�P$=P$+A$:A$="":�tFA | A$=A$+" " ��P$ �� P%=E% �� �J� �=254 � �=90 �"Machine code file NLQ does not exist on this disc.":� � *CODE0 ��7 ��:�" at line ";� �� � ���oscli(O$) � $O%=O$ �X%=O%�256:Y%=O%�256 � �&FFF7 � �
00000000 0d 00 0a 1c f4 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |..... **********| 00000010 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 00 14 1b |************....| 00000020 f4 20 20 4e 4c 51 20 70 72 69 6e 74 6f 75 74 20 |. NLQ printout | 00000030 72 6f 75 74 69 6e 65 0d 00 1e 1c f4 20 4e 4c 51 |routine..... NLQ| 00000040 20 74 65 78 74 20 66 69 6c 65 20 70 72 69 6e 74 | text file print| 00000050 6f 75 74 0d 00 28 1a f4 20 20 20 28 63 29 20 50 |out..(.. (c) P| 00000060 2e 41 2e 43 72 6f 6f 6b 20 31 39 38 36 0d 00 32 |.A.Crook 1986..2| 00000070 1c f4 20 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |.. *************| 00000080 2a 2a 2a 2a 2a 2a 2a 2a 2a 0d 00 3c 05 20 0d 00 |*********..<. ..| 00000090 46 0b de 20 4f 25 20 33 32 0d 00 50 0b ee 85 e5 |F.. O% 32..P....| 000000a0 8d 74 64 41 0d 00 5a 08 2a 4e 4c 51 0d 00 64 06 |.tdA..Z.*NLQ..d.| 000000b0 eb 37 0d 00 6e 68 f1 22 84 22 2b bd 31 35 37 2b |.7..nh."."+.157+| 000000c0 bd 31 34 31 2b 22 20 20 86 4e 65 61 72 20 4c 65 |.141+" .Near Le| 000000d0 74 74 65 72 20 51 75 61 6c 69 74 79 20 50 72 69 |tter Quality Pri| 000000e0 6e 74 6f 75 74 2e 20 22 27 22 84 22 2b bd 31 35 |ntout. "'"."+.15| 000000f0 37 2b bd 31 34 31 2b 22 20 20 86 4e 65 61 72 20 |7+.141+" .Near | 00000100 4c 65 74 74 65 72 20 51 75 61 6c 69 74 79 20 50 |Letter Quality P| 00000110 72 69 6e 74 6f 75 74 2e 20 22 0d 00 78 11 ef 32 |rintout. "..x..2| 00000120 38 2c 30 2c 32 34 2c 33 39 2c 33 0d 00 82 25 e8 |8,0,24,39,3...%.| 00000130 27 22 86 4e 61 6d 65 20 6f 66 20 66 69 6c 65 20 |'".Name of file | 00000140 74 6f 20 70 72 69 6e 74 2e 22 27 22 86 22 46 24 |to print."'"."F$| 00000150 0d 00 8c 41 58 25 3d ad 28 46 24 29 3a e7 20 58 |...AX%=.(F$):. X| 00000160 25 3d 30 8c d9 23 58 25 3a f1 27 22 81 22 2b bd |%=0..#X%:.'"."+.| 00000170 31 35 37 2b 22 83 46 69 6c 65 20 64 6f 65 73 20 |157+".File does | 00000180 6e 6f 74 20 65 78 69 73 74 2e 22 3a e5 8d 74 42 |not exist.":..tB| 00000190 40 0d 00 96 16 45 25 3d a2 23 58 25 2b 26 32 30 |@....E%=.#X%+&20| 000001a0 30 30 3a d9 23 58 25 0d 00 a0 1c f2 6f 73 63 6c |00:.#X%.....oscl| 000001b0 69 28 22 4c 4f 2e 22 2b 46 24 2b 22 20 32 30 30 |i("LO."+F$+" 200| 000001c0 30 22 29 0d 00 aa 3f e8 27 22 86 4e 75 6d 62 65 |0")...?.'".Numbe| 000001d0 72 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 |r of characters | 000001e0 77 69 64 65 20 66 6f 72 20 74 68 65 20 6c 65 66 |wide for the lef| 000001f0 74 20 86 6d 61 72 67 69 6e 20 3f 22 27 22 86 22 |t .margin ?"'"."| 00000200 4c 25 0d 00 b4 2e e8 27 22 86 4e 75 6d 62 65 72 |L%.....'".Number| 00000210 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 70 | of characters p| 00000220 65 72 20 6c 69 6e 65 20 3f 22 27 22 86 22 57 25 |er line ?"'"."W%| 00000230 0d 00 be 6c e7 20 4c 25 2b 57 25 3e 38 30 f1 27 |...l. L%+W%>80.'| 00000240 22 81 22 2b bd 31 35 37 2b 22 83 4d 61 72 67 69 |"."+.157+".Margi| 00000250 6e 20 61 6e 64 20 6c 69 6e 65 20 6c 65 6e 67 74 |n and line lengt| 00000260 68 20 65 78 63 65 65 64 73 22 27 22 81 22 2b bd |h exceeds"'"."+.| 00000270 31 35 37 2b 22 83 38 30 20 63 68 61 72 61 63 74 |157+".80 charact| 00000280 65 72 73 2e 20 50 6c 65 61 73 65 20 72 65 2d 65 |ers. Please re-e| 00000290 6e 74 65 72 2e 22 3a e5 8d 74 6a 40 0d 00 c8 32 |nter.":..tj@...2| 000002a0 e8 27 22 86 4c 69 6e 65 20 66 65 65 64 20 70 69 |.'".Line feed pi| 000002b0 74 63 68 20 69 6e 20 31 2f 37 32 20 6f 66 20 61 |tch in 1/72 of a| 000002c0 6e 20 69 6e 63 68 2e 22 27 22 86 22 59 25 0d 00 |n inch."'"."Y%..| 000002d0 d2 18 f1 27 27 27 22 86 50 72 65 76 69 65 77 20 |...'''".Preview | 000002e0 28 59 2f 4e 29 22 0d 00 dc 31 41 25 3d a5 80 26 |(Y/N)"...1A%=..&| 000002f0 44 46 3a e7 41 25 3d 97 22 59 22 8c eb 33 3a ef |DF:.A%=."Y"..3:.| 00000300 31 34 3a f2 70 72 69 6e 74 3a 41 25 3d a5 3a eb |14:.print:A%=.:.| 00000310 37 3a e5 8d 64 52 40 0d 00 e6 5d e7 20 41 25 3c |7:..dR@...]. A%<| 00000320 3e 97 22 4e 22 8c 8d 64 5c 40 8b f1 27 22 81 22 |>."N"..d\@..'"."| 00000330 2b bd 31 35 37 2b 22 83 43 68 65 63 6b 20 70 72 |+.157+".Check pr| 00000340 69 6e 74 65 72 20 69 73 20 72 65 61 64 79 20 74 |inter is ready t| 00000350 68 65 6e 20 70 72 65 73 73 22 27 22 81 22 2b bd |hen press"'"."+.| 00000360 31 35 37 2b 22 83 61 6e 79 20 6b 65 79 2e 22 3a |157+".any key.":| 00000370 41 25 3d a5 0d 00 f0 12 ef 32 2c 31 2c 32 37 2c |A%=......2,1,27,| 00000380 31 2c 36 34 2c 33 0d 00 fa 29 f2 6f 73 63 6c 69 |1,64,3...).oscli| 00000390 28 22 43 4f 44 45 31 2c 22 2b c3 59 25 29 3a eb |("CODE1,"+.Y%):.| 000003a0 33 3a f2 70 72 69 6e 74 3a 2a 43 4f 44 45 30 0d |3:.print:*CODE0.| 000003b0 01 04 09 e5 8d 44 64 40 0d 01 0e 05 20 0d 01 18 |.....Dd@.... ...| 000003c0 0b dd f2 70 72 69 6e 74 0d 01 22 12 50 25 3d 26 |...print..".P%=&| 000003d0 32 30 30 30 3a 41 24 3d 22 22 0d 01 2c 05 f5 0d |2000:A$=""..,...| 000003e0 01 36 12 50 24 3d c4 4c 25 2c 22 20 22 29 2b 41 |.6.P$=.L%," ")+A| 000003f0 24 0d 01 40 22 41 24 3d 22 22 3a f5 41 25 3d 3f |$..@"A$="":.A%=?| 00000400 50 25 3a e7 41 25 3e 33 33 8c 41 24 3d 41 24 2b |P%:.A%>33.A$=A$+| 00000410 bd 41 25 0d 01 4a 18 50 25 3d 50 25 2b 31 3a fd |.A%..J.P%=P%+1:.| 00000420 41 25 3c 33 33 84 50 25 3d 45 25 0d 01 54 13 e7 |A%<33.P%=E%..T..| 00000430 20 50 25 3d 45 25 20 8c 20 41 25 3d 31 33 0d 01 | P%=E% . A%=13..| 00000440 5e 2f e7 41 25 3d 33 32 80 a9 50 24 2b a9 41 24 |^/.A%=32..P$+.A$| 00000450 3c 28 57 25 2b 4c 25 2d 31 29 8c 50 24 3d 50 24 |<(W%+L%-1).P$=P$| 00000460 2b 41 24 2b 22 20 22 3a e5 8d 44 40 41 0d 01 68 |+A$+" ":..D@A..h| 00000470 2a e7 a9 50 24 2b a9 41 24 3c 3d 28 57 25 2b 4c |*..P$+.A$<=(W%+L| 00000480 25 29 8c 50 24 3d 50 24 2b 41 24 3a 41 24 3d 22 |%).P$=P$+A$:A$="| 00000490 22 3a e5 8d 74 46 41 0d 01 72 31 e7 41 25 3c 3e |":..tFA..r1.A%<>| 000004a0 33 32 80 a9 50 24 2b a9 41 24 3c 3d 28 57 25 2b |32..P$+.A$<=(W%+| 000004b0 4c 25 29 8c 50 24 3d 50 24 2b 41 24 3a 41 24 3d |L%).P$=P$+A$:A$=| 000004c0 22 22 3a e5 8d 74 46 41 0d 01 7c 0d 41 24 3d 41 |"":..tFA..|.A$=A| 000004d0 24 2b 22 20 22 0d 01 86 07 f1 50 24 0d 01 90 0b |$+" ".....P$....| 000004e0 fd 20 50 25 3d 45 25 0d 01 9a 05 e1 0d 01 a4 4a |. P%=E%........J| 000004f0 e7 20 9f 3d 32 35 34 20 80 20 9e 3d 39 30 20 f1 |. .=254 . .=90 .| 00000500 22 4d 61 63 68 69 6e 65 20 63 6f 64 65 20 66 69 |"Machine code fi| 00000510 6c 65 20 4e 4c 51 20 64 6f 65 73 20 6e 6f 74 20 |le NLQ does not | 00000520 65 78 69 73 74 20 6f 6e 20 74 68 69 73 20 64 69 |exist on this di| 00000530 73 63 2e 22 3a e0 0d 01 ae 0a 2a 43 4f 44 45 30 |sc.":.....*CODE0| 00000540 0d 01 b8 06 ef 37 0d 01 c2 14 f6 3a f1 22 20 61 |.....7.....:." a| 00000550 74 20 6c 69 6e 65 20 22 3b 9e 0d 01 cc 05 e0 0d |t line ";.......| 00000560 01 d6 05 20 0d 01 e0 0f dd f2 6f 73 63 6c 69 28 |... ......oscli(| 00000570 4f 24 29 0d 01 ea 0a 24 4f 25 3d 4f 24 0d 01 f4 |O$)....$O%=O$...| 00000580 17 58 25 3d 4f 25 83 32 35 36 3a 59 25 3d 4f 25 |.X%=O%.256:Y%=O%| 00000590 81 32 35 36 0d 01 fe 0a d6 26 46 46 46 37 0d 02 |.256.....&FFF7..| 000005a0 08 05 e1 0d ff |.....| 000005a5