Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_36.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_36.ADF |
Filename: | |
Read OK: | ✔ |
File size: | 06E1 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_36.ADF » PRINT
- Personal collection » Acorn hard disk » zipped_disks » elk03 » eug36/PRINT
File contents
10REM Program for printing all text files - Richard Dimond, V.2 Feb 1998 20ONERRORIFP$="" 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 CODE7 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 220OSCLI"DIR $.F":PROCreaddir 230OSCLI"DIR $.G":PROCreaddir 240OSCLI"DIR $.P":PROCreaddir 250OSCLI"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 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 %��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 CODE7 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 ��"DIR $.F":�readdir ��"DIR $.G":�readdir ��"DIR $.P":�readdir ��"DIR $.S":�readdir �"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 ��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 25 ee 85 e7 50 |Feb 1998...%...P| 00000050 24 3d 22 22 20 8c f6 3a f1 22 20 61 74 20 6c 69 |$="" ..:." at li| 00000060 6e 65 20 22 3b 9e 3a e0 20 8b d7 50 24 0d 00 1e |ne ";.:. ..P$...| 00000070 52 6c 6e 73 3d 26 38 30 3a 73 6b 6c 6e 73 3d 26 |Rlns=&80:sklns=&| 00000080 38 31 3a 73 6b 70 3d 26 38 32 3a 63 6e 74 3d 26 |81:skp=&82:cnt=&| 00000090 38 33 3a 6d 6f 64 66 6c 67 3d 26 38 34 3a 3f 73 |83:modflg=&84:?s| 000000a0 6b 70 3d 30 3a 66 24 3d 24 26 31 32 30 3a 50 24 |kp=0:f$=$&120:P$| 000000b0 3d 24 26 31 33 34 3a 53 24 3d 24 26 31 34 38 0d |=$&134:S$=$&148.| 000000c0 00 28 1f 3f 6c 6e 73 3d 36 30 3a 3f 73 6b 6c 6e |.(.?lns=60:?skln| 000000d0 73 3d 31 32 3a 3f 63 6e 74 3d 3f 6c 6e 73 0d 00 |s=12:?cnt=?lns..| 000000e0 32 0d e7 5a 25 20 f2 74 65 78 74 0d 00 3c 0f 2a |2..Z% .text..<.*| 000000f0 4c 4f 41 44 20 43 4f 44 45 37 0d 00 46 60 d3 3d |LOAD CODE7..F`.=| 00000100 26 32 36 30 30 3a 6d 25 3d 33 3a ef 32 33 2c 31 |&2600:m%=3:.23,1| 00000110 2c 30 3b 30 3b 30 3b 30 3b 3a db 3a f1 22 41 6c |,0;0;0;0;:.:."Al| 00000120 6c 20 74 65 78 74 20 66 69 6c 65 73 20 77 69 6c |l text files wil| 00000130 6c 20 62 65 20 70 72 69 6e 74 65 64 2e 22 27 27 |l be printed."''| 00000140 22 53 63 72 65 65 6e 20 6f 72 20 50 72 69 6e 74 |"Screen or Print| 00000150 65 72 3f 20 28 53 2f 50 29 22 0d 00 50 17 f5 3a |er? (S/P)"..P..:| 00000160 61 25 3d a7 22 53 73 50 70 22 2c be 29 3a fd 61 |a%=."SsPp",.):.a| 00000170 25 0d 00 5a 09 ef 32 32 2c 33 0d 00 64 1c e7 61 |%..Z..22,3..d..a| 00000180 25 3c 33 20 f2 73 63 72 65 65 6e 20 8b 20 f2 70 |%<3 .screen . .p| 00000190 72 69 6e 74 65 72 0d 00 6e 1d f1 27 27 22 50 52 |rinter..n..''"PR| 000001a0 45 53 53 20 53 50 41 43 45 20 46 4f 52 20 4d 45 |ESS SPACE FOR ME| 000001b0 4e 55 22 0d 00 78 0a f5 fd a6 2d 39 39 0d 00 82 |NU"..x....-99...| 000001c0 0b d7 22 4d 45 4e 55 22 0d 00 8c 05 e0 0d 00 96 |.."MENU"........| 000001d0 19 dd f2 73 63 72 65 65 6e 3a 54 25 3d a3 3a f2 |...screen:T%=.:.| 000001e0 64 69 72 73 3a e1 0d 00 a0 4f dd f2 70 72 69 6e |dirs:....O..prin| 000001f0 74 65 72 3a 54 25 3d b9 3a f1 27 27 22 44 6f 20 |ter:T%=.:.''"Do | 00000200 79 6f 75 20 77 61 6e 74 20 70 65 72 66 6f 72 61 |you want perfora| 00000210 74 69 6f 6e 20 73 6b 69 70 3f 20 28 59 2f 4e 29 |tion skip? (Y/N)| 00000220 22 3a f5 3a 61 25 3d a7 22 59 79 4e 6e 22 2c be |":.:a%=."YyNn",.| 00000230 29 3a fd 61 25 0d 00 aa 1a e7 61 25 3c 33 20 3f |):.a%.....a%<3 ?| 00000240 73 6b 70 3d 2d 31 20 8b 20 3f 73 6b 70 3d 30 0d |skp=-1 . ?skp=0.| 00000250 00 b4 1f ef 31 35 2c 32 3a e7 5a 25 20 f2 74 65 |....15,2:.Z% .te| 00000260 78 74 20 8b f2 64 69 72 73 3a ef 33 3a e1 0d 00 |xt ..dirs:.3:...| 00000270 be 0a dd f2 64 69 72 73 0d 00 c8 0c f2 72 65 61 |....dirs.....rea| 00000280 64 64 69 72 0d 00 d2 15 ff 22 44 49 52 20 4c 22 |ddir....."DIR L"| 00000290 3a f2 72 65 61 64 64 69 72 0d 00 dc 17 ff 22 44 |:.readdir....."D| 000002a0 49 52 20 24 2e 46 22 3a f2 72 65 61 64 64 69 72 |IR $.F":.readdir| 000002b0 0d 00 e6 17 ff 22 44 49 52 20 24 2e 47 22 3a f2 |....."DIR $.G":.| 000002c0 72 65 61 64 64 69 72 0d 00 f0 17 ff 22 44 49 52 |readdir....."DIR| 000002d0 20 24 2e 50 22 3a f2 72 65 61 64 64 69 72 0d 00 | $.P":.readdir..| 000002e0 fa 17 ff 22 44 49 52 20 24 2e 53 22 3a f2 72 65 |..."DIR $.S":.re| 000002f0 61 64 64 69 72 0d 01 04 0c ff 22 44 49 52 20 24 |addir....."DIR $| 00000300 22 0d 01 0e 05 e1 0d 01 18 0d dd f2 72 65 61 64 |"...........read| 00000310 64 69 72 0d 01 22 19 de 20 70 61 72 62 6c 6b 20 |dir..".. parblk | 00000320 26 30 43 2c 66 6e 61 6d 65 20 31 30 0d 01 2c 33 |&0C,fname 10..,3| 00000330 41 25 3d 38 3a 58 25 3d 70 61 72 62 6c 6b 20 83 |A%=8:X%=parblk .| 00000340 26 31 30 30 3a 59 25 3d 70 61 72 62 6c 6b 20 81 |&100:Y%=parblk .| 00000350 26 31 30 30 3a 70 61 72 62 6c 6b 21 39 3d 30 0d |&100:parblk!9=0.| 00000360 01 36 26 f5 3a 70 61 72 62 6c 6b 21 31 3d 66 6e |.6&.:parblk!1=fn| 00000370 61 6d 65 3a 70 61 72 62 6c 6b 21 35 3d 31 3a d6 |ame:parblk!5=1:.| 00000380 26 46 46 44 31 0d 01 40 29 e7 70 61 72 62 6c 6b |&FFD1..@).parblk| 00000390 21 35 3c 3e 31 20 8c 20 e7 66 6e 61 6d 65 3f 31 |!5<>1 . .fname?1| 000003a0 3d 97 22 2b 22 20 f2 6c 64 66 6e 61 6d 65 0d 01 |=."+" .ldfname..| 000003b0 4a 12 fd 20 70 61 72 62 6c 6b 21 35 3d 31 3a e1 |J.. parblk!5=1:.| 000003c0 0d 01 54 05 e1 0d 01 5e 14 dd f2 6c 64 66 6e 61 |..T....^...ldfna| 000003d0 6d 65 3a 66 6e 24 3d 22 22 0d 01 68 37 e3 78 25 |me:fn$=""..h7.x%| 000003e0 3d 31 b8 20 3f 66 6e 61 6d 65 3a 66 24 3d bd 3f |=1. ?fname:f$=.?| 000003f0 28 66 6e 61 6d 65 2b 78 25 29 3a 66 6e 24 3d 66 |(fname+x%):fn$=f| 00000400 6e 24 2b 66 24 3a ed 3a f2 70 72 69 6e 74 3a e1 |n$+f$:.:.print:.| 00000410 0d 01 72 17 dd f2 70 72 69 6e 74 3a ef 32 32 2c |..r...print:.22,| 00000420 36 3a d6 26 39 30 30 0d 01 7c 1c ff 22 4c 4f 41 |6:.&900..|.."LOA| 00000430 44 20 22 2b 66 6e 24 2b 22 20 32 36 30 30 22 2b |D "+fn$+" 2600"+| 00000440 bd 31 33 0d 01 86 36 ef 32 32 2c 6d 25 3a e7 54 |.13...6.22,m%:.T| 00000450 25 20 ef 31 35 2c 32 20 8b 20 ef 31 34 3a f1 27 |% .15,2 . .14:.'| 00000460 22 50 52 45 53 53 20 53 48 49 46 54 20 54 4f 20 |"PRESS SHIFT TO | 00000470 53 43 52 4f 4c 4c 22 27 27 0d 01 90 09 d6 26 39 |SCROLL"''.....&9| 00000480 30 33 0d 01 9a 14 e7 ac 5a 25 3a e7 ac 54 25 20 |03......Z%:..T% | 00000490 f2 73 70 61 63 65 0d 01 a4 0a f1 3a ef 33 3a e1 |.space.....:.3:.| 000004a0 0d 01 ae 1c dd f2 74 65 78 74 3a 66 24 3d 24 26 |......text:f$=$&| 000004b0 31 32 30 3a 50 24 3d 24 26 31 33 34 0d 01 b8 12 |120:P$=$&134....| 000004c0 e7 4d 25 20 6d 25 3d 36 20 8b 6d 25 3d 33 0d 01 |.M% m%=6 .m%=3..| 000004d0 c2 08 66 25 3d 30 0d 01 cc 1d 66 25 3d 66 25 2b |..f%=0....f%=f%+| 000004e0 31 3a 66 6e 24 3d 66 24 2b c3 66 25 3a f2 70 72 |1:fn$=f$+.f%:.pr| 000004f0 69 6e 74 0d 01 d6 24 e7 66 25 3d 46 25 20 e7 44 |int...$.f%=F% .D| 00000500 25 20 f2 70 69 63 74 28 53 24 2c 4e 25 2c 44 25 |% .pict(S$,N%,D%| 00000510 29 3a e5 8d 64 7e 41 0d 01 e0 10 e7 66 25 3d 46 |):..d~A.....f%=F| 00000520 25 20 e5 8d 64 7e 41 0d 01 ea 1a e7 ac 54 25 20 |% ..d~A......T% | 00000530 ff 22 46 58 32 31 22 3a f1 27 3a f2 73 70 61 63 |."FX21":.':.spac| 00000540 65 0d 01 f4 09 e5 8d 64 4c 41 0d 01 fe 3c ef 33 |e......dLA...<.3| 00000550 3a e7 ac 54 25 20 f1 27 27 22 3c 50 3e 20 54 4f |:..T% .''"<P> TO| 00000560 20 50 52 49 4e 54 20 54 45 58 54 20 3c 4d 3e 20 | PRINT TEXT <M> | 00000570 46 4f 52 20 4d 45 4e 55 22 3b 20 8b 20 d7 22 24 |FOR MENU"; . ."$| 00000580 2e 4d 45 4e 55 22 0d 02 08 2e e7 20 52 25 20 61 |.MENU"..... R% a| 00000590 24 3d 22 50 4d 52 22 3a f1 22 20 3c 52 3e 20 52 |$="PMR":." <R> R| 000005a0 55 4e 20 50 52 4f 47 52 41 4d 22 20 8b 61 24 3d |UN PROGRAM" .a$=| 000005b0 22 50 4d 22 0d 02 12 13 f5 3a 61 25 3d a7 61 24 |"PM".....:a%=.a$| 000005c0 2c be 29 3a fd 61 25 0d 02 1c 18 e7 61 25 3d 31 |,.):.a%.....a%=1| 000005d0 20 f2 70 72 69 6e 74 65 72 3a e5 8d 64 7e 41 0d | .printer:..d~A.| 000005e0 02 26 13 e7 61 25 3d 32 20 d7 22 24 2e 4d 45 4e |.&..a%=2 ."$.MEN| 000005f0 55 22 0d 02 30 1c e7 61 25 3d 33 20 ef 32 32 2c |U"..0..a%=3 .22,| 00000600 36 3a d3 3d 26 36 30 30 30 3a d7 20 50 24 0d 02 |6:.=&6000:. P$..| 00000610 3a 06 fd a3 0d 02 44 14 dd f2 70 69 63 74 28 53 |:.....D...pict(S| 00000620 24 2c 4e 25 2c 44 25 29 0d 02 4e 0f 64 25 3d 30 |$,N%,D%)..N.d%=0| 00000630 3a f2 73 70 61 63 65 0d 02 58 22 64 25 3d 64 25 |:.space..X"d%=d%| 00000640 2b 31 3a ef 32 32 2c 4e 25 3a ff 22 4c 4f 41 44 |+1:.22,N%:."LOAD| 00000650 20 22 2b 53 24 2b c3 64 25 0d 02 62 1a e7 ac 54 | "+S$+.d%..b...T| 00000660 25 20 f2 73 70 61 63 65 20 8b 20 ff 22 55 43 4f |% .space . ."UCO| 00000670 44 45 22 0d 02 6c 12 e7 64 25 3d 44 25 20 ef 32 |DE"..l..d%=D% .2| 00000680 32 2c 33 3a e1 0d 02 76 09 e5 8d 44 58 42 0d 02 |2,3:...v...DXB..| 00000690 80 1e dd f2 79 6e 3a f5 3a 61 25 3d a7 22 59 79 |....yn:.:a%=."Yy| 000006a0 4e 6e 22 2c be 29 3a fd 61 25 3a e1 0d 02 8a 33 |Nn",.):.a%:....3| 000006b0 dd f2 73 70 61 63 65 20 ff 22 46 58 32 31 22 3a |..space ."FX21":| 000006c0 f1 8a 30 2c 33 31 29 3b 22 50 52 45 53 53 20 53 |..0,31);"PRESS S| 000006d0 50 41 43 45 2e 2e 2e 22 3b 3a 47 3d a5 3a e1 0d |PACE...";:G=.:..| 000006e0 ff |.| 000006e1