Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_40.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_40.ADF |
Filename: | |
Read OK: | ✔ |
File size: | 070F 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_40.ADF » PRINT
- Personal collection » Acorn hard disk » zipped_disks » elk03 » eug40/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 210OSCLI"DIR L":PROCreaddir 220REM OSCLI"DIR $.F":PROCreaddir 230REM OSCLI"DIR $.G":PROCreaddir 240OSCLI"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 ��"DIR L":�readdir � � OSCLI"DIR $.F":PROCreaddir � � OSCLI"DIR $.G":PROCreaddir ��"DIR $.P":�readdir � � 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 15 ff 22 44 49 52 20 4c 22 3a f2 72 65 61 64 |..."DIR L":.read| 000002a0 64 69 72 0d 00 dc 20 f4 20 4f 53 43 4c 49 22 44 |dir... . OSCLI"D| 000002b0 49 52 20 24 2e 46 22 3a 50 52 4f 43 72 65 61 64 |IR $.F":PROCread| 000002c0 64 69 72 0d 00 e6 20 f4 20 4f 53 43 4c 49 22 44 |dir... . OSCLI"D| 000002d0 49 52 20 24 2e 47 22 3a 50 52 4f 43 72 65 61 64 |IR $.G":PROCread| 000002e0 64 69 72 0d 00 f0 17 ff 22 44 49 52 20 24 2e 50 |dir....."DIR $.P| 000002f0 22 3a f2 72 65 61 64 64 69 72 0d 00 fa 20 f4 20 |":.readdir... . | 00000300 4f 53 43 4c 49 22 44 49 52 20 24 2e 53 22 3a 50 |OSCLI"DIR $.S":P| 00000310 52 4f 43 72 65 61 64 64 69 72 0d 01 04 0c ff 22 |ROCreaddir....."| 00000320 44 49 52 20 24 22 0d 01 0e 05 e1 0d 01 18 0d dd |DIR $"..........| 00000330 f2 72 65 61 64 64 69 72 0d 01 22 19 de 20 70 61 |.readdir..".. pa| 00000340 72 62 6c 6b 20 26 30 43 2c 66 6e 61 6d 65 20 31 |rblk &0C,fname 1| 00000350 30 0d 01 2c 33 41 25 3d 38 3a 58 25 3d 70 61 72 |0..,3A%=8:X%=par| 00000360 62 6c 6b 20 83 26 31 30 30 3a 59 25 3d 70 61 72 |blk .&100:Y%=par| 00000370 62 6c 6b 20 81 26 31 30 30 3a 70 61 72 62 6c 6b |blk .&100:parblk| 00000380 21 39 3d 30 0d 01 36 26 f5 3a 70 61 72 62 6c 6b |!9=0..6&.:parblk| 00000390 21 31 3d 66 6e 61 6d 65 3a 70 61 72 62 6c 6b 21 |!1=fname:parblk!| 000003a0 35 3d 31 3a d6 26 46 46 44 31 0d 01 40 29 e7 70 |5=1:.&FFD1..@).p| 000003b0 61 72 62 6c 6b 21 35 3c 3e 31 20 8c 20 e7 66 6e |arblk!5<>1 . .fn| 000003c0 61 6d 65 3f 31 3d 97 22 2b 22 20 f2 6c 64 66 6e |ame?1=."+" .ldfn| 000003d0 61 6d 65 0d 01 4a 12 fd 20 70 61 72 62 6c 6b 21 |ame..J.. parblk!| 000003e0 35 3d 31 3a e1 0d 01 54 05 e1 0d 01 5e 14 dd f2 |5=1:...T....^...| 000003f0 6c 64 66 6e 61 6d 65 3a 66 6e 24 3d 22 22 0d 01 |ldfname:fn$=""..| 00000400 68 37 e3 78 25 3d 31 b8 20 3f 66 6e 61 6d 65 3a |h7.x%=1. ?fname:| 00000410 66 24 3d bd 3f 28 66 6e 61 6d 65 2b 78 25 29 3a |f$=.?(fname+x%):| 00000420 66 6e 24 3d 66 6e 24 2b 66 24 3a ed 3a f2 70 72 |fn$=fn$+f$:.:.pr| 00000430 69 6e 74 3a e1 0d 01 72 17 dd f2 70 72 69 6e 74 |int:...r...print| 00000440 3a ef 32 32 2c 36 3a d6 26 39 30 30 0d 01 7c 1c |:.22,6:.&900..|.| 00000450 ff 22 4c 4f 41 44 20 22 2b 66 6e 24 2b 22 20 32 |."LOAD "+fn$+" 2| 00000460 36 30 30 22 2b bd 31 33 0d 01 86 36 ef 32 32 2c |600"+.13...6.22,| 00000470 6d 25 3a e7 54 25 20 ef 31 35 2c 32 20 8b 20 ef |m%:.T% .15,2 . .| 00000480 31 34 3a f1 27 22 50 52 45 53 53 20 53 48 49 46 |14:.'"PRESS SHIF| 00000490 54 20 54 4f 20 53 43 52 4f 4c 4c 22 27 27 0d 01 |T TO SCROLL"''..| 000004a0 90 09 d6 26 39 30 33 0d 01 9a 14 e7 ac 5a 25 3a |...&903......Z%:| 000004b0 e7 ac 54 25 20 f2 73 70 61 63 65 0d 01 a4 0a f1 |..T% .space.....| 000004c0 3a ef 33 3a e1 0d 01 ae 25 dd f2 74 65 78 74 3a |:.3:....%..text:| 000004d0 66 24 3d 24 26 31 32 30 3a 50 24 3d 24 26 31 33 |f$=$&120:P$=$&13| 000004e0 34 3a 53 24 3d 24 26 31 34 38 0d 01 b8 12 e7 4d |4:S$=$&148.....M| 000004f0 25 20 6d 25 3d 36 20 8b 6d 25 3d 33 0d 01 c2 08 |% m%=6 .m%=3....| 00000500 66 25 3d 30 0d 01 cc 1d 66 25 3d 66 25 2b 31 3a |f%=0....f%=f%+1:| 00000510 66 6e 24 3d 66 24 2b c3 66 25 3a f2 70 72 69 6e |fn$=f$+.f%:.prin| 00000520 74 0d 01 d6 24 e7 66 25 3d 46 25 20 e7 44 25 20 |t...$.f%=F% .D% | 00000530 f2 70 69 63 74 28 53 24 2c 4e 25 2c 44 25 29 3a |.pict(S$,N%,D%):| 00000540 e5 8d 64 7e 41 0d 01 e0 10 e7 66 25 3d 46 25 20 |..d~A.....f%=F% | 00000550 e5 8d 64 7e 41 0d 01 ea 1a e7 ac 54 25 20 ff 22 |..d~A......T% ."| 00000560 46 58 32 31 22 3a f1 27 3a f2 73 70 61 63 65 0d |FX21":.':.space.| 00000570 01 f4 09 e5 8d 64 4c 41 0d 01 fe 3c ef 33 3a e7 |.....dLA...<.3:.| 00000580 ac 54 25 20 f1 27 27 22 3c 50 3e 20 54 4f 20 50 |.T% .''"<P> TO P| 00000590 52 49 4e 54 20 54 45 58 54 20 3c 4d 3e 20 46 4f |RINT TEXT <M> FO| 000005a0 52 20 4d 45 4e 55 22 3b 20 8b 20 d7 22 24 2e 4d |R MENU"; . ."$.M| 000005b0 45 4e 55 22 0d 02 08 2e e7 20 52 25 20 61 24 3d |ENU"..... R% a$=| 000005c0 22 50 4d 52 22 3a f1 22 20 3c 52 3e 20 52 55 4e |"PMR":." <R> RUN| 000005d0 20 50 52 4f 47 52 41 4d 22 20 8b 61 24 3d 22 50 | PROGRAM" .a$="P| 000005e0 4d 22 0d 02 12 13 f5 3a 61 25 3d a7 61 24 2c be |M".....:a%=.a$,.| 000005f0 29 3a fd 61 25 0d 02 1c 18 e7 61 25 3d 31 20 f2 |):.a%.....a%=1 .| 00000600 70 72 69 6e 74 65 72 3a e5 8d 64 7e 41 0d 02 26 |printer:..d~A..&| 00000610 13 e7 61 25 3d 32 20 d7 22 24 2e 4d 45 4e 55 22 |..a%=2 ."$.MENU"| 00000620 0d 02 30 1c e7 61 25 3d 33 20 ef 32 32 2c 36 3a |..0..a%=3 .22,6:| 00000630 d3 3d 26 36 30 30 30 3a d7 20 50 24 0d 02 3a 06 |.=&6000:. P$..:.| 00000640 fd a3 0d 02 44 14 dd f2 70 69 63 74 28 53 24 2c |....D...pict(S$,| 00000650 4e 25 2c 44 25 29 0d 02 4e 0f 64 25 3d 30 3a f2 |N%,D%)..N.d%=0:.| 00000660 73 70 61 63 65 0d 02 58 22 64 25 3d 64 25 2b 31 |space..X"d%=d%+1| 00000670 3a ef 32 32 2c 4e 25 3a ff 22 4c 4f 41 44 20 22 |:.22,N%:."LOAD "| 00000680 2b 53 24 2b c3 64 25 0d 02 62 1a e7 ac 54 25 20 |+S$+.d%..b...T% | 00000690 f2 73 70 61 63 65 20 8b 20 ff 22 55 43 4f 44 45 |.space . ."UCODE| 000006a0 22 0d 02 6c 12 e7 64 25 3d 44 25 20 ef 32 32 2c |"..l..d%=D% .22,| 000006b0 33 3a e1 0d 02 76 09 e5 8d 44 58 42 0d 02 80 1e |3:...v...DXB....| 000006c0 dd f2 79 6e 3a f5 3a 61 25 3d a7 22 59 79 4e 6e |..yn:.:a%=."YyNn| 000006d0 22 2c be 29 3a fd 61 25 3a e1 0d 02 8a 33 dd f2 |",.):.a%:....3..| 000006e0 73 70 61 63 65 20 ff 22 46 58 32 31 22 3a f1 8a |space ."FX21":..| 000006f0 30 2c 33 31 29 3b 22 50 52 45 53 53 20 53 50 41 |0,31);"PRESS SPA| 00000700 43 45 2e 2e 2e 22 3b 3a 47 3d a5 3a e1 0d ff |CE...";:G=.:...| 0000070f