Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_52.ADF » PRINT

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_52.ADF
Filename: PRINT
Read OK:
File size: 051C bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

There are 4 duplicate copies of this file in the archive:

File contents
   10HIMEM=&2600:lns=&80:sklns=&81:skp=&82:cnt=&83:modflg=&84:?skp=0:f$=$&15C
   20?lns=K%:?sklns=L%:?cnt=?lns
   30*LOAD $.CODE8
   40IFZ% PROCtext
   50m%=3:VDU23;8202;0;0;0;:CLS:PRINT"All text files will be printed."''"Screen or Printer? (S/P)"
   60REPEAT:a%=INSTR("SsPp",GET$):UNTILa%
   70VDU22,3,23;8202;0;0;0;
   80IFa%<3 PROCscreen ELSE PROCprinter
   90MODE6:VDU23;8202;0;0;0;:CHAIN"$.MENU"
  100END
  110:
  120DEFPROCscreen:T%=FALSE:PROCdirs:ENDPROC
  130:
  140DEFPROCprinter:N%=3:T%=TRUE:PRINT''"Do you want perforation skip? (Y/N)":REPEAT:a%=INSTR("YyNn",GET$):UNTILa%
  150IFa%<3 ?skp=-1 ELSE ?skp=0
  160VDU15,2:IFZ% PROCtext ELSEPROCdirs:VDU3:ENDPROC
  170:
  180DEFPROCdirs
  190PROCreaddir
  200OSCLI"DIR $.V":PROCreaddir
  210OSCLI"DIR $.R":PROCreaddir
  220OSCLI"DIR $.S":PROCreaddir
  230OSCLI"DIR $.L":PROCreaddir
  240OSCLI"DIR $"
  250ENDPROC
  260:
  270DEFPROCreaddir
  280DIM parblk &0C,fname 10
  290A%=8:X%=parblk MOD&100:Y%=parblk DIV&100:parblk!9=0
  300REPEAT:parblk!1=fname:parblk!5=1:CALL&FFD1
  310IFparblk!5<>1 THEN IFfname?1=ASC"+" PROCldfname
  320UNTIL parblk!5=1:ENDPROC
  330ENDPROC
  340:
  350DEFPROCldfname:fn$=""
  360FORx%=1TO ?fname:f$=CHR$?(fname+x%):fn$=fn$+f$:NEXT:PROCprint:ENDPROC
  370DEFPROCprint:VDU22,6,23;8202;0;0;0;:CALL&900
  380OSCLI"LOAD "+fn$+" 2600"+CHR$13
  390IFT% VDU22,3 ELSE VDU22,N%,23;8202;0;0;0;:IFT% VDU15,2 ELSE VDU14:PRINT'"����������������  ��������  ����������       <SHIFT> TO SCROLL ISSUE #";I%'STRING$(12*(9-N%),CHR$(157))'
  400CALL&903
  410IFNOTT% PRINT'STRING$(12*(9-N%),CHR$(157)):PROCspace
  420PRINT:ENDPROC
  430:
  440DEFPROCyn:REPEAT:a%=INSTR("YyNn",GET$):UNTILa%:ENDPROC
  450:
  460DEFPROCspace OSCLI"FX21":PRINT''SPC(41-6*N%)"PRESS <SPACE> TO CONTINUE"TAB(0,0);:REPEATUNTILGET=32:ENDPROC

H�=&2600:lns=&80:sklns=&81:skp=&82:cnt=&83:modflg=&84:?skp=0:f$=$&15C
?lns=K%:?sklns=L%:?cnt=?lns
*LOAD $.CODE8
(
�Z% �text
2Ym%=3:�23;8202;0;0;0;:�:�"All text files will be printed."''"Screen or Printer? (S/P)"
<�:a%=�"SsPp",�):�a%
F�22,3,23;8202;0;0;0;
P�a%<3 �screen � �printer
Z �6:�23;8202;0;0;0;:�"$.MENU"
d�
n:
x��screen:T%=�:�dirs:�
�:
�T��printer:N%=3: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 $.V":�readdir
��"DIR $.R":�readdir
��"DIR $.S":�readdir
��"DIR $.L":�readdir
��"DIR $"
��
:

��readdir
� parblk &0C,fname 10
"3A%=8:X%=parblk �&100:Y%=parblk �&100:parblk!9=0
,&�:parblk!1=fname:parblk!5=1:�&FFD1
6)�parblk!5<>1 � �fname?1=�"+" �ldfname
@� parblk!5=1:�
J�
T:
^��ldfname:fn$=""
h7�x%=1� ?fname:f$=�?(fname+x%):fn$=fn$+f$:�:�print:�
r&��print:�22,6,23;8202;0;0;0;:�&900
|�"LOAD "+fn$+" 2600"+�13
���T% �22,3 � �22,N%,23;8202;0;0;0;:�T% �15,2 � �14:�'"����������������  ��������  ����������       <SHIFT> TO SCROLL ISSUE #";I%'�12*(9-N%),�(157))'
�	�&903
�$�T% �'�12*(9-N%),�(157)):�space
��:�
�:
���yn:�:a%=�"YyNn",�):�a%:�
�:
�K��space �"FX21":�''�(41-6*N%)"PRESS <SPACE> TO CONTINUE"�0,0);:���=32:�
�
00000000  0d 00 0a 48 d3 3d 26 32  36 30 30 3a 6c 6e 73 3d  |...H.=&2600:lns=|
00000010  26 38 30 3a 73 6b 6c 6e  73 3d 26 38 31 3a 73 6b  |&80:sklns=&81:sk|
00000020  70 3d 26 38 32 3a 63 6e  74 3d 26 38 33 3a 6d 6f  |p=&82:cnt=&83:mo|
00000030  64 66 6c 67 3d 26 38 34  3a 3f 73 6b 70 3d 30 3a  |dflg=&84:?skp=0:|
00000040  66 24 3d 24 26 31 35 43  0d 00 14 1f 3f 6c 6e 73  |f$=$&15C....?lns|
00000050  3d 4b 25 3a 3f 73 6b 6c  6e 73 3d 4c 25 3a 3f 63  |=K%:?sklns=L%:?c|
00000060  6e 74 3d 3f 6c 6e 73 0d  00 1e 11 2a 4c 4f 41 44  |nt=?lns....*LOAD|
00000070  20 24 2e 43 4f 44 45 38  0d 00 28 0d e7 5a 25 20  | $.CODE8..(..Z% |
00000080  f2 74 65 78 74 0d 00 32  59 6d 25 3d 33 3a ef 32  |.text..2Ym%=3:.2|
00000090  33 3b 38 32 30 32 3b 30  3b 30 3b 30 3b 3a db 3a  |3;8202;0;0;0;:.:|
000000a0  f1 22 41 6c 6c 20 74 65  78 74 20 66 69 6c 65 73  |."All text files|
000000b0  20 77 69 6c 6c 20 62 65  20 70 72 69 6e 74 65 64  | will be printed|
000000c0  2e 22 27 27 22 53 63 72  65 65 6e 20 6f 72 20 50  |."''"Screen or P|
000000d0  72 69 6e 74 65 72 3f 20  28 53 2f 50 29 22 0d 00  |rinter? (S/P)"..|
000000e0  3c 17 f5 3a 61 25 3d a7  22 53 73 50 70 22 2c be  |<..:a%=."SsPp",.|
000000f0  29 3a fd 61 25 0d 00 46  18 ef 32 32 2c 33 2c 32  |):.a%..F..22,3,2|
00000100  33 3b 38 32 30 32 3b 30  3b 30 3b 30 3b 0d 00 50  |3;8202;0;0;0;..P|
00000110  1c e7 61 25 3c 33 20 f2  73 63 72 65 65 6e 20 8b  |..a%<3 .screen .|
00000120  20 f2 70 72 69 6e 74 65  72 0d 00 5a 20 eb 36 3a  | .printer..Z .6:|
00000130  ef 32 33 3b 38 32 30 32  3b 30 3b 30 3b 30 3b 3a  |.23;8202;0;0;0;:|
00000140  d7 22 24 2e 4d 45 4e 55  22 0d 00 64 05 e0 0d 00  |."$.MENU"..d....|
00000150  6e 05 3a 0d 00 78 19 dd  f2 73 63 72 65 65 6e 3a  |n.:..x...screen:|
00000160  54 25 3d a3 3a f2 64 69  72 73 3a e1 0d 00 82 05  |T%=.:.dirs:.....|
00000170  3a 0d 00 8c 54 dd f2 70  72 69 6e 74 65 72 3a 4e  |:...T..printer:N|
00000180  25 3d 33 3a 54 25 3d b9  3a f1 27 27 22 44 6f 20  |%=3:T%=.:.''"Do |
00000190  79 6f 75 20 77 61 6e 74  20 70 65 72 66 6f 72 61  |you want perfora|
000001a0  74 69 6f 6e 20 73 6b 69  70 3f 20 28 59 2f 4e 29  |tion skip? (Y/N)|
000001b0  22 3a f5 3a 61 25 3d a7  22 59 79 4e 6e 22 2c be  |":.:a%=."YyNn",.|
000001c0  29 3a fd 61 25 0d 00 96  1a e7 61 25 3c 33 20 3f  |):.a%.....a%<3 ?|
000001d0  73 6b 70 3d 2d 31 20 8b  20 3f 73 6b 70 3d 30 0d  |skp=-1 . ?skp=0.|
000001e0  00 a0 1f ef 31 35 2c 32  3a e7 5a 25 20 f2 74 65  |....15,2:.Z% .te|
000001f0  78 74 20 8b f2 64 69 72  73 3a ef 33 3a e1 0d 00  |xt ..dirs:.3:...|
00000200  aa 05 3a 0d 00 b4 0a dd  f2 64 69 72 73 0d 00 be  |..:......dirs...|
00000210  0c f2 72 65 61 64 64 69  72 0d 00 c8 17 ff 22 44  |..readdir....."D|
00000220  49 52 20 24 2e 56 22 3a  f2 72 65 61 64 64 69 72  |IR $.V":.readdir|
00000230  0d 00 d2 17 ff 22 44 49  52 20 24 2e 52 22 3a f2  |....."DIR $.R":.|
00000240  72 65 61 64 64 69 72 0d  00 dc 17 ff 22 44 49 52  |readdir....."DIR|
00000250  20 24 2e 53 22 3a f2 72  65 61 64 64 69 72 0d 00  | $.S":.readdir..|
00000260  e6 17 ff 22 44 49 52 20  24 2e 4c 22 3a f2 72 65  |..."DIR $.L":.re|
00000270  61 64 64 69 72 0d 00 f0  0c ff 22 44 49 52 20 24  |addir....."DIR $|
00000280  22 0d 00 fa 05 e1 0d 01  04 05 3a 0d 01 0e 0d dd  |".........:.....|
00000290  f2 72 65 61 64 64 69 72  0d 01 18 19 de 20 70 61  |.readdir..... pa|
000002a0  72 62 6c 6b 20 26 30 43  2c 66 6e 61 6d 65 20 31  |rblk &0C,fname 1|
000002b0  30 0d 01 22 33 41 25 3d  38 3a 58 25 3d 70 61 72  |0.."3A%=8:X%=par|
000002c0  62 6c 6b 20 83 26 31 30  30 3a 59 25 3d 70 61 72  |blk .&100:Y%=par|
000002d0  62 6c 6b 20 81 26 31 30  30 3a 70 61 72 62 6c 6b  |blk .&100:parblk|
000002e0  21 39 3d 30 0d 01 2c 26  f5 3a 70 61 72 62 6c 6b  |!9=0..,&.:parblk|
000002f0  21 31 3d 66 6e 61 6d 65  3a 70 61 72 62 6c 6b 21  |!1=fname:parblk!|
00000300  35 3d 31 3a d6 26 46 46  44 31 0d 01 36 29 e7 70  |5=1:.&FFD1..6).p|
00000310  61 72 62 6c 6b 21 35 3c  3e 31 20 8c 20 e7 66 6e  |arblk!5<>1 . .fn|
00000320  61 6d 65 3f 31 3d 97 22  2b 22 20 f2 6c 64 66 6e  |ame?1=."+" .ldfn|
00000330  61 6d 65 0d 01 40 12 fd  20 70 61 72 62 6c 6b 21  |ame..@.. parblk!|
00000340  35 3d 31 3a e1 0d 01 4a  05 e1 0d 01 54 05 3a 0d  |5=1:...J....T.:.|
00000350  01 5e 14 dd f2 6c 64 66  6e 61 6d 65 3a 66 6e 24  |.^...ldfname:fn$|
00000360  3d 22 22 0d 01 68 37 e3  78 25 3d 31 b8 20 3f 66  |=""..h7.x%=1. ?f|
00000370  6e 61 6d 65 3a 66 24 3d  bd 3f 28 66 6e 61 6d 65  |name:f$=.?(fname|
00000380  2b 78 25 29 3a 66 6e 24  3d 66 6e 24 2b 66 24 3a  |+x%):fn$=fn$+f$:|
00000390  ed 3a f2 70 72 69 6e 74  3a e1 0d 01 72 26 dd f2  |.:.print:...r&..|
000003a0  70 72 69 6e 74 3a ef 32  32 2c 36 2c 32 33 3b 38  |print:.22,6,23;8|
000003b0  32 30 32 3b 30 3b 30 3b  30 3b 3a d6 26 39 30 30  |202;0;0;0;:.&900|
000003c0  0d 01 7c 1c ff 22 4c 4f  41 44 20 22 2b 66 6e 24  |..|.."LOAD "+fn$|
000003d0  2b 22 20 32 36 30 30 22  2b bd 31 33 0d 01 86 97  |+" 2600"+.13....|
000003e0  e7 54 25 20 ef 32 32 2c  33 20 8b 20 ef 32 32 2c  |.T% .22,3 . .22,|
000003f0  4e 25 2c 32 33 3b 38 32  30 32 3b 30 3b 30 3b 30  |N%,23;8202;0;0;0|
00000400  3b 3a e7 54 25 20 ef 31  35 2c 32 20 8b 20 ef 31  |;:.T% .15,2 . .1|
00000410  34 3a f1 27 22 88 89 8e  8f 88 89 84 85 99 9a 95  |4:.'"...........|
00000420  96 84 87 90 91 20 20 9b  9c 97 98 88 89 95 96 20  |.....  ........ |
00000430  20 84 8d 95 96 84 87 9b  9c 93 94 20 20 20 20 20  | ..........     |
00000440  20 20 3c 53 48 49 46 54  3e 20 54 4f 20 53 43 52  |  <SHIFT> TO SCR|
00000450  4f 4c 4c 20 49 53 53 55  45 20 23 22 3b 49 25 27  |OLL ISSUE #";I%'|
00000460  c4 31 32 2a 28 39 2d 4e  25 29 2c bd 28 31 35 37  |.12*(9-N%),.(157|
00000470  29 29 27 0d 01 90 09 d6  26 39 30 33 0d 01 9a 24  |))'.....&903...$|
00000480  e7 ac 54 25 20 f1 27 c4  31 32 2a 28 39 2d 4e 25  |..T% .'.12*(9-N%|
00000490  29 2c bd 28 31 35 37 29  29 3a f2 73 70 61 63 65  |),.(157)):.space|
000004a0  0d 01 a4 07 f1 3a e1 0d  01 ae 05 3a 0d 01 b8 1e  |.....:.....:....|
000004b0  dd f2 79 6e 3a f5 3a 61  25 3d a7 22 59 79 4e 6e  |..yn:.:a%=."YyNn|
000004c0  22 2c be 29 3a fd 61 25  3a e1 0d 01 c2 05 3a 0d  |",.):.a%:.....:.|
000004d0  01 cc 4b dd f2 73 70 61  63 65 20 ff 22 46 58 32  |..K..space ."FX2|
000004e0  31 22 3a f1 27 27 89 28  34 31 2d 36 2a 4e 25 29  |1":.''.(41-6*N%)|
000004f0  22 50 52 45 53 53 20 3c  53 50 41 43 45 3e 20 54  |"PRESS <SPACE> T|
00000500  4f 20 43 4f 4e 54 49 4e  55 45 22 8a 30 2c 30 29  |O CONTINUE".0,0)|
00000510  3b 3a f5 fd a5 3d 33 32  3a e1 0d ff              |;:...=32:...|
0000051c
PRINT.m0
PRINT.m1
PRINT.m2
PRINT.m4
PRINT.m5