Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_41.ADF » PRINT
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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_41.ADF |
Filename: | |
Read OK: | ✔ |
File size: | 0721 bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF802B |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_41.ADF » PRINT
- Personal collection » Acorn hard disk » zipped_disks » elk06 » eug41/PRINT
File contents
10REM Program for printing all text files - Richard Dimond, V.2 Feb 1998 20ONERROR Z%=0:IFP$="" THENREPORT:PRINT" at line ";ERL:END ELSECHAINP$ 30lns=&80:sklns=&81:skp=&82:cnt=&83:modflg=&84:?skp=0:f$=$&120:P$=$&134:S$=$&148 40?lns=60:?sklns=12:?cnt=?lns 50IFZ% PROCtext 60*LOAD CODE8 70HIMEM=&2600:m%=3:VDU23,1,0;0;0;0;:CLS:PRINT"All text files will be printed."''"Screen or Printer? (S/P)" 80REPEAT:a%=INSTR("SsPp",GET$):UNTILa% 90VDU22,3 100IFa%<3 PROCscreen ELSE PROCprinter 110PRINT''"PRESS SPACE FOR MENU" 120REPEATUNTILINKEY-99 130CHAIN"MENU" 140END 150DEFPROCscreen:T%=FALSE:PROCdirs:ENDPROC 160DEFPROCprinter:T%=TRUE:PRINT''"Do you want perforation skip? (Y/N)":REPEAT:a%=INSTR("YyNn",GET$):UNTILa% 170IFa%<3 ?skp=-1 ELSE ?skp=0 180VDU15,2:IFZ% PROCtext ELSEPROCdirs:VDU3:ENDPROC 190DEFPROCdirs 200PROCreaddir 210REM OSCLI"DIR L":PROCreaddir 220REM OSCLI"DIR $.F":PROCreaddir 230REM OSCLI"DIR $.G":PROCreaddir 240REM OSCLI"DIR $.P":PROCreaddir 250REM OSCLI"DIR $.S":PROCreaddir 260OSCLI"DIR $" 270ENDPROC 280DEFPROCreaddir 290DIM parblk &0C,fname 10 300A%=8:X%=parblk MOD&100:Y%=parblk DIV&100:parblk!9=0 310REPEAT:parblk!1=fname:parblk!5=1:CALL&FFD1 320IFparblk!5<>1 THEN IFfname?1=ASC"+" PROCldfname 330UNTIL parblk!5=1:ENDPROC 340ENDPROC 350DEFPROCldfname:fn$="" 360FORx%=1TO ?fname:f$=CHR$?(fname+x%):fn$=fn$+f$:NEXT:PROCprint:ENDPROC 370DEFPROCprint:VDU22,6:CALL&900 380OSCLI"LOAD "+fn$+" 2600"+CHR$13 390VDU22,m%:IFT% VDU15,2 ELSE VDU14:PRINT'"PRESS SHIFT TO SCROLL"'' 400CALL&903 410IFNOTZ%:IFNOTT% PROCspace 420PRINT:VDU3:ENDPROC 430DEFPROCtext:f$=$&120:P$=$&134:S$=$&148 440IFM% m%=6 ELSEm%=3 450f%=0 460f%=f%+1:fn$=f$+STR$f%:PROCprint 470IFf%=F% IFD% PROCpict(S$,N%,D%):GOTO510 480IFf%=F% GOTO510 490IFNOTT% OSCLI"FX21":PRINT':PROCspace 500GOTO460 510VDU3:IFNOTT% PRINT''"<P> TO PRINT TEXT <M> FOR MENU"; ELSE CHAIN"$.MENU" 520IF R% a$="PMR":PRINT" <R> RUN PROGRAM" ELSEa$="PM" 530REPEAT:a%=INSTR(a$,GET$):UNTILa% 540IFa%=1 PROCprinter:GOTO510 550IFa%=2 CHAIN"$.MENU" 560IFa%=3 VDU22,6:HIMEM=&6000:CHAIN P$ 570UNTILFALSE 580DEFPROCpict(S$,N%,D%) 590d%=0:PROCspace 600d%=d%+1:VDU22,N%:OSCLI"LOAD "+S$+STR$d% 610IFNOTT% PROCspace ELSE OSCLI"UCODE" 620IFd%=D% VDU22,3:ENDPROC 630GOTO600 640DEFPROCyn:REPEAT:a%=INSTR("YyNn",GET$):UNTILa%:ENDPROC 650DEFPROCspace OSCLI"FX21":PRINTTAB(0,31);"PRESS SPACE...";:G=GET:ENDPROC
H� Program for printing all text files - Richard Dimond, V.2 Feb 1998 /� Z%=0:�P$="" ��:�" at line ";�:� ��P$ Rlns=&80:sklns=&81:skp=&82:cnt=&83:modflg=&84:?skp=0:f$=$&120:P$=$&134:S$=$&148 (?lns=60:?sklns=12:?cnt=?lns 2 �Z% �text <*LOAD CODE8 F`�=&2600:m%=3:�23,1,0;0;0;0;:�:�"All text files will be printed."''"Screen or Printer? (S/P)" P�:a%=�"SsPp",�):�a% Z �22,3 d�a%<3 �screen � �printer n�''"PRESS SPACE FOR MENU" x ���-99 ��"MENU" �� ���screen:T%=�:�dirs:� �O��printer:T%=�:�''"Do you want perforation skip? (Y/N)":�:a%=�"YyNn",�):�a% ��a%<3 ?skp=-1 � ?skp=0 ��15,2:�Z% �text ��dirs:�3:� � ��dirs ��readdir �� OSCLI"DIR L":PROCreaddir � � OSCLI"DIR $.F":PROCreaddir � � OSCLI"DIR $.G":PROCreaddir � � OSCLI"DIR $.P":PROCreaddir � � OSCLI"DIR $.S":PROCreaddir �"DIR $" � ��readdir "� parblk &0C,fname 10 ,3A%=8:X%=parblk �&100:Y%=parblk �&100:parblk!9=0 6&�:parblk!1=fname:parblk!5=1:�&FFD1 @)�parblk!5<>1 � �fname?1=�"+" �ldfname J� parblk!5=1:� T� ^��ldfname:fn$="" h7�x%=1� ?fname:f$=�?(fname+x%):fn$=fn$+f$:�:�print:� r��print:�22,6:�&900 |�"LOAD "+fn$+" 2600"+�13 �6�22,m%:�T% �15,2 � �14:�'"PRESS SHIFT TO SCROLL"'' � �&903 ��Z%:�T% �space � �:�3:� �%��text:f$=$&120:P$=$&134:S$=$&148 ��M% m%=6 �m%=3 �f%=0 �f%=f%+1:fn$=f$+�f%:�print �$�f%=F% �D% �pict(S$,N%,D%):�d~A ��f%=F% �d~A ��T% �"FX21":�':�space � �dLA �<�3:�T% �''"<P> TO PRINT TEXT <M> FOR MENU"; � �"$.MENU" .� R% a$="PMR":�" <R> RUN PROGRAM" �a$="PM" �:a%=�a$,�):�a% �a%=1 �printer:�d~A &�a%=2 �"$.MENU" 0�a%=3 �22,6:�=&6000:� P$ :�� D��pict(S$,N%,D%) Nd%=0:�space X"d%=d%+1:�22,N%:�"LOAD "+S$+�d% b�T% �space � �"UCODE" l�d%=D% �22,3:� v �DXB ���yn:�:a%=�"YyNn",�):�a%:� �3��space �"FX21":�0,31);"PRESS SPACE...";:G=�:� �
00000000 0d 00 0a 48 f4 20 50 72 6f 67 72 61 6d 20 66 6f |...H. Program fo| 00000010 72 20 70 72 69 6e 74 69 6e 67 20 61 6c 6c 20 74 |r printing all t| 00000020 65 78 74 20 66 69 6c 65 73 20 2d 20 52 69 63 68 |ext files - Rich| 00000030 61 72 64 20 44 69 6d 6f 6e 64 2c 20 56 2e 32 20 |ard Dimond, V.2 | 00000040 46 65 62 20 31 39 39 38 0d 00 14 2f ee 85 20 5a |Feb 1998.../.. Z| 00000050 25 3d 30 3a e7 50 24 3d 22 22 20 8c f6 3a f1 22 |%=0:.P$="" ..:."| 00000060 20 61 74 20 6c 69 6e 65 20 22 3b 9e 3a e0 20 8b | at line ";.:. .| 00000070 d7 50 24 20 20 20 20 0d 00 1e 52 6c 6e 73 3d 26 |.P$ ...Rlns=&| 00000080 38 30 3a 73 6b 6c 6e 73 3d 26 38 31 3a 73 6b 70 |80:sklns=&81:skp| 00000090 3d 26 38 32 3a 63 6e 74 3d 26 38 33 3a 6d 6f 64 |=&82:cnt=&83:mod| 000000a0 66 6c 67 3d 26 38 34 3a 3f 73 6b 70 3d 30 3a 66 |flg=&84:?skp=0:f| 000000b0 24 3d 24 26 31 32 30 3a 50 24 3d 24 26 31 33 34 |$=$&120:P$=$&134| 000000c0 3a 53 24 3d 24 26 31 34 38 0d 00 28 1f 3f 6c 6e |:S$=$&148..(.?ln| 000000d0 73 3d 36 30 3a 3f 73 6b 6c 6e 73 3d 31 32 3a 3f |s=60:?sklns=12:?| 000000e0 63 6e 74 3d 3f 6c 6e 73 0d 00 32 0d e7 5a 25 20 |cnt=?lns..2..Z% | 000000f0 f2 74 65 78 74 0d 00 3c 0f 2a 4c 4f 41 44 20 43 |.text..<.*LOAD C| 00000100 4f 44 45 38 0d 00 46 60 d3 3d 26 32 36 30 30 3a |ODE8..F`.=&2600:| 00000110 6d 25 3d 33 3a ef 32 33 2c 31 2c 30 3b 30 3b 30 |m%=3:.23,1,0;0;0| 00000120 3b 30 3b 3a db 3a f1 22 41 6c 6c 20 74 65 78 74 |;0;:.:."All text| 00000130 20 66 69 6c 65 73 20 77 69 6c 6c 20 62 65 20 70 | files will be p| 00000140 72 69 6e 74 65 64 2e 22 27 27 22 53 63 72 65 65 |rinted."''"Scree| 00000150 6e 20 6f 72 20 50 72 69 6e 74 65 72 3f 20 28 53 |n or Printer? (S| 00000160 2f 50 29 22 0d 00 50 17 f5 3a 61 25 3d a7 22 53 |/P)"..P..:a%=."S| 00000170 73 50 70 22 2c be 29 3a fd 61 25 0d 00 5a 09 ef |sPp",.):.a%..Z..| 00000180 32 32 2c 33 0d 00 64 1c e7 61 25 3c 33 20 f2 73 |22,3..d..a%<3 .s| 00000190 63 72 65 65 6e 20 8b 20 f2 70 72 69 6e 74 65 72 |creen . .printer| 000001a0 0d 00 6e 1d f1 27 27 22 50 52 45 53 53 20 53 50 |..n..''"PRESS SP| 000001b0 41 43 45 20 46 4f 52 20 4d 45 4e 55 22 0d 00 78 |ACE FOR MENU"..x| 000001c0 0a f5 fd a6 2d 39 39 0d 00 82 0b d7 22 4d 45 4e |....-99....."MEN| 000001d0 55 22 0d 00 8c 05 e0 0d 00 96 19 dd f2 73 63 72 |U"...........scr| 000001e0 65 65 6e 3a 54 25 3d a3 3a f2 64 69 72 73 3a e1 |een:T%=.:.dirs:.| 000001f0 0d 00 a0 4f dd f2 70 72 69 6e 74 65 72 3a 54 25 |...O..printer:T%| 00000200 3d b9 3a f1 27 27 22 44 6f 20 79 6f 75 20 77 61 |=.:.''"Do you wa| 00000210 6e 74 20 70 65 72 66 6f 72 61 74 69 6f 6e 20 73 |nt perforation s| 00000220 6b 69 70 3f 20 28 59 2f 4e 29 22 3a f5 3a 61 25 |kip? (Y/N)":.:a%| 00000230 3d a7 22 59 79 4e 6e 22 2c be 29 3a fd 61 25 0d |=."YyNn",.):.a%.| 00000240 00 aa 1a e7 61 25 3c 33 20 3f 73 6b 70 3d 2d 31 |....a%<3 ?skp=-1| 00000250 20 8b 20 3f 73 6b 70 3d 30 0d 00 b4 1f ef 31 35 | . ?skp=0.....15| 00000260 2c 32 3a e7 5a 25 20 f2 74 65 78 74 20 8b f2 64 |,2:.Z% .text ..d| 00000270 69 72 73 3a ef 33 3a e1 0d 00 be 0a dd f2 64 69 |irs:.3:.......di| 00000280 72 73 0d 00 c8 0c f2 72 65 61 64 64 69 72 0d 00 |rs.....readdir..| 00000290 d2 1e f4 20 4f 53 43 4c 49 22 44 49 52 20 4c 22 |... OSCLI"DIR L"| 000002a0 3a 50 52 4f 43 72 65 61 64 64 69 72 0d 00 dc 20 |:PROCreaddir... | 000002b0 f4 20 4f 53 43 4c 49 22 44 49 52 20 24 2e 46 22 |. OSCLI"DIR $.F"| 000002c0 3a 50 52 4f 43 72 65 61 64 64 69 72 0d 00 e6 20 |:PROCreaddir... | 000002d0 f4 20 4f 53 43 4c 49 22 44 49 52 20 24 2e 47 22 |. OSCLI"DIR $.G"| 000002e0 3a 50 52 4f 43 72 65 61 64 64 69 72 0d 00 f0 20 |:PROCreaddir... | 000002f0 f4 20 4f 53 43 4c 49 22 44 49 52 20 24 2e 50 22 |. OSCLI"DIR $.P"| 00000300 3a 50 52 4f 43 72 65 61 64 64 69 72 0d 00 fa 20 |:PROCreaddir... | 00000310 f4 20 4f 53 43 4c 49 22 44 49 52 20 24 2e 53 22 |. OSCLI"DIR $.S"| 00000320 3a 50 52 4f 43 72 65 61 64 64 69 72 0d 01 04 0c |:PROCreaddir....| 00000330 ff 22 44 49 52 20 24 22 0d 01 0e 05 e1 0d 01 18 |."DIR $"........| 00000340 0d dd f2 72 65 61 64 64 69 72 0d 01 22 19 de 20 |...readdir..".. | 00000350 70 61 72 62 6c 6b 20 26 30 43 2c 66 6e 61 6d 65 |parblk &0C,fname| 00000360 20 31 30 0d 01 2c 33 41 25 3d 38 3a 58 25 3d 70 | 10..,3A%=8:X%=p| 00000370 61 72 62 6c 6b 20 83 26 31 30 30 3a 59 25 3d 70 |arblk .&100:Y%=p| 00000380 61 72 62 6c 6b 20 81 26 31 30 30 3a 70 61 72 62 |arblk .&100:parb| 00000390 6c 6b 21 39 3d 30 0d 01 36 26 f5 3a 70 61 72 62 |lk!9=0..6&.:parb| 000003a0 6c 6b 21 31 3d 66 6e 61 6d 65 3a 70 61 72 62 6c |lk!1=fname:parbl| 000003b0 6b 21 35 3d 31 3a d6 26 46 46 44 31 0d 01 40 29 |k!5=1:.&FFD1..@)| 000003c0 e7 70 61 72 62 6c 6b 21 35 3c 3e 31 20 8c 20 e7 |.parblk!5<>1 . .| 000003d0 66 6e 61 6d 65 3f 31 3d 97 22 2b 22 20 f2 6c 64 |fname?1=."+" .ld| 000003e0 66 6e 61 6d 65 0d 01 4a 12 fd 20 70 61 72 62 6c |fname..J.. parbl| 000003f0 6b 21 35 3d 31 3a e1 0d 01 54 05 e1 0d 01 5e 14 |k!5=1:...T....^.| 00000400 dd f2 6c 64 66 6e 61 6d 65 3a 66 6e 24 3d 22 22 |..ldfname:fn$=""| 00000410 0d 01 68 37 e3 78 25 3d 31 b8 20 3f 66 6e 61 6d |..h7.x%=1. ?fnam| 00000420 65 3a 66 24 3d bd 3f 28 66 6e 61 6d 65 2b 78 25 |e:f$=.?(fname+x%| 00000430 29 3a 66 6e 24 3d 66 6e 24 2b 66 24 3a ed 3a f2 |):fn$=fn$+f$:.:.| 00000440 70 72 69 6e 74 3a e1 0d 01 72 17 dd f2 70 72 69 |print:...r...pri| 00000450 6e 74 3a ef 32 32 2c 36 3a d6 26 39 30 30 0d 01 |nt:.22,6:.&900..| 00000460 7c 1c ff 22 4c 4f 41 44 20 22 2b 66 6e 24 2b 22 ||.."LOAD "+fn$+"| 00000470 20 32 36 30 30 22 2b bd 31 33 0d 01 86 36 ef 32 | 2600"+.13...6.2| 00000480 32 2c 6d 25 3a e7 54 25 20 ef 31 35 2c 32 20 8b |2,m%:.T% .15,2 .| 00000490 20 ef 31 34 3a f1 27 22 50 52 45 53 53 20 53 48 | .14:.'"PRESS SH| 000004a0 49 46 54 20 54 4f 20 53 43 52 4f 4c 4c 22 27 27 |IFT TO SCROLL"''| 000004b0 0d 01 90 09 d6 26 39 30 33 0d 01 9a 14 e7 ac 5a |.....&903......Z| 000004c0 25 3a e7 ac 54 25 20 f2 73 70 61 63 65 0d 01 a4 |%:..T% .space...| 000004d0 0a f1 3a ef 33 3a e1 0d 01 ae 25 dd f2 74 65 78 |..:.3:....%..tex| 000004e0 74 3a 66 24 3d 24 26 31 32 30 3a 50 24 3d 24 26 |t:f$=$&120:P$=$&| 000004f0 31 33 34 3a 53 24 3d 24 26 31 34 38 0d 01 b8 12 |134:S$=$&148....| 00000500 e7 4d 25 20 6d 25 3d 36 20 8b 6d 25 3d 33 0d 01 |.M% m%=6 .m%=3..| 00000510 c2 08 66 25 3d 30 0d 01 cc 1d 66 25 3d 66 25 2b |..f%=0....f%=f%+| 00000520 31 3a 66 6e 24 3d 66 24 2b c3 66 25 3a f2 70 72 |1:fn$=f$+.f%:.pr| 00000530 69 6e 74 0d 01 d6 24 e7 66 25 3d 46 25 20 e7 44 |int...$.f%=F% .D| 00000540 25 20 f2 70 69 63 74 28 53 24 2c 4e 25 2c 44 25 |% .pict(S$,N%,D%| 00000550 29 3a e5 8d 64 7e 41 0d 01 e0 10 e7 66 25 3d 46 |):..d~A.....f%=F| 00000560 25 20 e5 8d 64 7e 41 0d 01 ea 1a e7 ac 54 25 20 |% ..d~A......T% | 00000570 ff 22 46 58 32 31 22 3a f1 27 3a f2 73 70 61 63 |."FX21":.':.spac| 00000580 65 0d 01 f4 09 e5 8d 64 4c 41 0d 01 fe 3c ef 33 |e......dLA...<.3| 00000590 3a e7 ac 54 25 20 f1 27 27 22 3c 50 3e 20 54 4f |:..T% .''"<P> TO| 000005a0 20 50 52 49 4e 54 20 54 45 58 54 20 3c 4d 3e 20 | PRINT TEXT <M> | 000005b0 46 4f 52 20 4d 45 4e 55 22 3b 20 8b 20 d7 22 24 |FOR MENU"; . ."$| 000005c0 2e 4d 45 4e 55 22 0d 02 08 2e e7 20 52 25 20 61 |.MENU"..... R% a| 000005d0 24 3d 22 50 4d 52 22 3a f1 22 20 3c 52 3e 20 52 |$="PMR":." <R> R| 000005e0 55 4e 20 50 52 4f 47 52 41 4d 22 20 8b 61 24 3d |UN PROGRAM" .a$=| 000005f0 22 50 4d 22 0d 02 12 13 f5 3a 61 25 3d a7 61 24 |"PM".....:a%=.a$| 00000600 2c be 29 3a fd 61 25 0d 02 1c 18 e7 61 25 3d 31 |,.):.a%.....a%=1| 00000610 20 f2 70 72 69 6e 74 65 72 3a e5 8d 64 7e 41 0d | .printer:..d~A.| 00000620 02 26 13 e7 61 25 3d 32 20 d7 22 24 2e 4d 45 4e |.&..a%=2 ."$.MEN| 00000630 55 22 0d 02 30 1c e7 61 25 3d 33 20 ef 32 32 2c |U"..0..a%=3 .22,| 00000640 36 3a d3 3d 26 36 30 30 30 3a d7 20 50 24 0d 02 |6:.=&6000:. P$..| 00000650 3a 06 fd a3 0d 02 44 14 dd f2 70 69 63 74 28 53 |:.....D...pict(S| 00000660 24 2c 4e 25 2c 44 25 29 0d 02 4e 0f 64 25 3d 30 |$,N%,D%)..N.d%=0| 00000670 3a f2 73 70 61 63 65 0d 02 58 22 64 25 3d 64 25 |:.space..X"d%=d%| 00000680 2b 31 3a ef 32 32 2c 4e 25 3a ff 22 4c 4f 41 44 |+1:.22,N%:."LOAD| 00000690 20 22 2b 53 24 2b c3 64 25 0d 02 62 1a e7 ac 54 | "+S$+.d%..b...T| 000006a0 25 20 f2 73 70 61 63 65 20 8b 20 ff 22 55 43 4f |% .space . ."UCO| 000006b0 44 45 22 0d 02 6c 12 e7 64 25 3d 44 25 20 ef 32 |DE"..l..d%=D% .2| 000006c0 32 2c 33 3a e1 0d 02 76 09 e5 8d 44 58 42 0d 02 |2,3:...v...DXB..| 000006d0 80 1e dd f2 79 6e 3a f5 3a 61 25 3d a7 22 59 79 |....yn:.:a%=."Yy| 000006e0 4e 6e 22 2c be 29 3a fd 61 25 3a e1 0d 02 8a 33 |Nn",.):.a%:....3| 000006f0 dd f2 73 70 61 63 65 20 ff 22 46 58 32 31 22 3a |..space ."FX21":| 00000700 f1 8a 30 2c 33 31 29 3b 22 50 52 45 53 53 20 53 |..0,31);"PRESS S| 00000710 50 41 43 45 2e 2e 2e 22 3b 3a 47 3d a5 3a e1 0d |PACE...";:G=.:..| 00000720 ff |.| 00000721