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