Home » Personal collection » Acorn ADFS disks » Electron » EUG_submission_1.ADF » DiagDump/Text

DiagDump/Text

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 » EUG_submission_1.ADF
Filename: DiagDump/Text
Read OK:
File size: 06BF bytes
Load address: 54204556
Exec address: D747865
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
�.........*.......*.......*.......*.......*.......*.......*.......*.......*.<
                        Diagram Screen Dump

       I have made some improvements to the screen dump from EUG16:
 1) The output from this dump on my Panasonic KX-P1081 printer looked
slightly distorted, and lower case text was illegible. This was because
the line feeds had been halved, while the size of the print head remained
the same. This resulted in the lines of print overlapping, producing a
distorted effect. The remedy was to put the line feeds back to normal, and
intead change the number of pins of the head corresponding to each pixel,
from 2 to 1.
 2)  I have added a routine to allow only part of the screen to be dumped
(as required by Diagram). When the source program is run, you should enter
the text lines (which run from 0 to 31 down the screen) corresponding to
the area needed - note that the area includes both of the limits you set,
so if you enter 1 and 2 as the limits, 2 text lines will be printed. For
Diagram, you should enter lines 3 and 25 as the start and finish lines
respectively.
 3) I have eliminated the need for a separate file to be saved for each
screen mode - the program now reads the screen mode directly each time it
is run, and returns an error if this is not a graphics mode. This is of no
benefit in Diagram, as this always runs in Mode 0, but means that the dump
- called by *UCODE - can be  used universally, for printing out title
screens, etc.
       The program Diagram2 from EUG16 will need two minor changes to use
the new dump:
       (a) Change line 800 to: 800 *UCODE
       (b) Delete line 804
                                                 Matthew Ford
00000000  81 2e 2e 2e 2e 2e 2e 2e  2e 2e 2a 2e 2e 2e 2e 2e  |..........*.....|
00000010  2e 2e 2a 2e 2e 2e 2e 2e  2e 2e 2a 2e 2e 2e 2e 2e  |..*.......*.....|
*
00000040  2e 2e 2a 2e 2e 2e 2e 2e  2e 2e 2a 2e 3c 0d 20 20  |..*.......*.<.  |
00000050  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000060  20 20 20 20 20 20 44 69  61 67 72 61 6d 20 53 63  |      Diagram Sc|
00000070  72 65 65 6e 20 44 75 6d  70 0d 0d 20 20 20 20 20  |reen Dump..     |
00000080  20 20 49 20 68 61 76 65  20 6d 61 64 65 20 73 6f  |  I have made so|
00000090  6d 65 20 69 6d 70 72 6f  76 65 6d 65 6e 74 73 20  |me improvements |
000000a0  74 6f 20 74 68 65 20 73  63 72 65 65 6e 20 64 75  |to the screen du|
000000b0  6d 70 20 66 72 6f 6d 20  45 55 47 31 36 3a 0d 20  |mp from EUG16:. |
000000c0  31 29 20 54 68 65 20 6f  75 74 70 75 74 20 66 72  |1) The output fr|
000000d0  6f 6d 20 74 68 69 73 1a  20 64 75 6d 70 1a 20 6f  |om this. dump. o|
000000e0  6e 1a 20 6d 79 1a 20 50  61 6e 61 73 6f 6e 69 63  |n. my. Panasonic|
000000f0  1a 20 4b 58 2d 50 31 30  38 31 20 70 72 69 6e 74  |. KX-P1081 print|
00000100  65 72 20 6c 6f 6f 6b 65  64 0d 73 6c 69 67 68 74  |er looked.slight|
00000110  6c 79 1a 20 64 69 73 74  6f 72 74 65 64 2c 1a 20  |ly. distorted,. |
00000120  61 6e 64 1a 20 6c 6f 77  65 72 20 63 61 73 65 20  |and. lower case |
00000130  74 65 78 74 20 77 61 73  20 69 6c 6c 65 67 69 62  |text was illegib|
00000140  6c 65 2e 20 54 68 69 73  20 77 61 73 20 62 65 63  |le. This was bec|
00000150  61 75 73 65 0d 74 68 65  20 6c 69 6e 65 20 66 65  |ause.the line fe|
00000160  65 64 73 20 68 61 64 1a  20 62 65 65 6e 20 68 61  |eds had. been ha|
00000170  6c 76 65 64 2c 20 77 68  69 6c 65 20 74 68 65 20  |lved, while the |
00000180  73 69 7a 65 20 6f 66 20  74 68 65 20 70 72 69 6e  |size of the prin|
00000190  74 20 68 65 61 64 20 72  65 6d 61 69 6e 65 64 0d  |t head remained.|
000001a0  74 68 65 20 73 61 6d 65  2e 20 54 68 69 73 20 72  |the same. This r|
000001b0  65 73 75 6c 74 65 64 20  69 6e 1a 20 74 68 65 1a  |esulted in. the.|
000001c0  20 6c 69 6e 65 73 1a 20  6f 66 1a 20 70 72 69 6e  | lines. of. prin|
000001d0  74 20 6f 76 65 72 6c 61  70 70 69 6e 67 2c 20 70  |t overlapping, p|
000001e0  72 6f 64 75 63 69 6e 67  20 61 0d 64 69 73 74 6f  |roducing a.disto|
000001f0  72 74 65 64 20 65 66 66  65 63 74 2e 20 54 68 65  |rted effect. The|
00000200  20 72 65 6d 65 64 79 20  77 61 73 20 74 6f 20 70  | remedy was to p|
00000210  75 74 20 74 68 65 20 6c  69 6e 65 20 66 65 65 64  |ut the line feed|
00000220  73 20 62 61 63 6b 20 74  6f 20 6e 6f 72 6d 61 6c  |s back to normal|
00000230  2c 20 61 6e 64 0d 69 6e  74 65 61 64 20 63 68 61  |, and.intead cha|
00000240  6e 67 65 20 74 68 65 20  6e 75 6d 62 65 72 20 6f  |nge the number o|
00000250  66 20 70 69 6e 73 20 6f  66 20 74 68 65 20 68 65  |f pins of the he|
00000260  61 64 1a 20 63 6f 72 72  65 73 70 6f 6e 64 69 6e  |ad. correspondin|
00000270  67 20 74 6f 20 65 61 63  68 20 70 69 78 65 6c 2c  |g to each pixel,|
00000280  0d 66 72 6f 6d 20 32 20  74 6f 20 31 2e 0d 20 32  |.from 2 to 1.. 2|
00000290  29 20 20 49 20 68 61 76  65 20 61 64 64 65 64 20  |)  I have added |
000002a0  61 1a 20 72 6f 75 74 69  6e 65 20 74 6f 20 61 6c  |a. routine to al|
000002b0  6c 6f 77 20 6f 6e 6c 79  20 70 61 72 74 20 6f 66  |low only part of|
000002c0  20 74 68 65 20 73 63 72  65 65 6e 20 74 6f 20 62  | the screen to b|
000002d0  65 20 64 75 6d 70 65 64  0d 28 61 73 20 72 65 71  |e dumped.(as req|
000002e0  75 69 72 65 64 20 62 79  20 44 69 61 67 72 61 6d  |uired by Diagram|
000002f0  29 2e 20 57 68 65 6e 20  74 68 65 20 73 6f 75 72  |). When the sour|
00000300  63 65 20 70 72 6f 67 72  61 6d 20 69 73 20 72 75  |ce program is ru|
00000310  6e 2c 20 79 6f 75 20 73  68 6f 75 6c 64 20 65 6e  |n, you should en|
00000320  74 65 72 0d 74 68 65 20  74 65 78 74 20 6c 69 6e  |ter.the text lin|
00000330  65 73 20 28 77 68 69 63  68 20 72 75 6e 20 66 72  |es (which run fr|
00000340  6f 6d 1a 20 30 1a 20 74  6f 20 33 31 20 64 6f 77  |om. 0. to 31 dow|
00000350  6e 20 74 68 65 20 73 63  72 65 65 6e 29 20 63 6f  |n the screen) co|
00000360  72 72 65 73 70 6f 6e 64  69 6e 67 20 74 6f 0d 74  |rresponding to.t|
00000370  68 65 20 61 72 65 61 20  6e 65 65 64 65 64 20 2d  |he area needed -|
00000380  20 6e 6f 74 65 20 74 68  61 74 20 74 68 65 20 61  | note that the a|
00000390  72 65 61 1a 20 69 6e 63  6c 75 64 65 73 20 62 6f  |rea. includes bo|
000003a0  74 68 20 6f 66 20 74 68  65 20 6c 69 6d 69 74 73  |th of the limits|
000003b0  20 79 6f 75 20 73 65 74  2c 0d 73 6f 20 69 66 20  | you set,.so if |
000003c0  79 6f 75 20 65 6e 74 65  72 20 31 20 61 6e 64 20  |you enter 1 and |
000003d0  32 20 61 73 20 74 68 65  1a 20 6c 69 6d 69 74 73  |2 as the. limits|
000003e0  2c 1a 20 32 20 74 65 78  74 20 6c 69 6e 65 73 20  |,. 2 text lines |
000003f0  77 69 6c 6c 20 62 65 20  70 72 69 6e 74 65 64 2e  |will be printed.|
00000400  20 46 6f 72 0d 44 69 61  67 72 61 6d 2c 1a 20 79  | For.Diagram,. y|
00000410  6f 75 20 73 68 6f 75 6c  64 20 65 6e 74 65 72 20  |ou should enter |
00000420  6c 69 6e 65 73 20 33 20  61 6e 64 20 32 35 20 61  |lines 3 and 25 a|
00000430  73 20 74 68 65 20 73 74  61 72 74 1a 20 61 6e 64  |s the start. and|
00000440  1a 20 66 69 6e 69 73 68  1a 20 6c 69 6e 65 73 0d  |. finish. lines.|
00000450  72 65 73 70 65 63 74 69  76 65 6c 79 2e 0d 20 33  |respectively.. 3|
00000460  29 20 49 20 68 61 76 65  20 65 6c 69 6d 69 6e 61  |) I have elimina|
00000470  74 65 64 20 74 68 65 1a  20 6e 65 65 64 1a 20 66  |ted the. need. f|
00000480  6f 72 1a 20 61 20 73 65  70 61 72 61 74 65 20 66  |or. a separate f|
00000490  69 6c 65 20 74 6f 20 62  65 20 73 61 76 65 64 20  |ile to be saved |
000004a0  66 6f 72 20 65 61 63 68  0d 73 63 72 65 65 6e 20  |for each.screen |
000004b0  6d 6f 64 65 20 2d 20 74  68 65 20 70 72 6f 67 72  |mode - the progr|
000004c0  61 6d 20 6e 6f 77 20 72  65 61 64 73 20 74 68 65  |am now reads the|
000004d0  1a 20 73 63 72 65 65 6e  20 6d 6f 64 65 20 64 69  |. screen mode di|
000004e0  72 65 63 74 6c 79 20 65  61 63 68 20 74 69 6d 65  |rectly each time|
000004f0  20 69 74 0d 69 73 20 72  75 6e 2c 20 61 6e 64 20  | it.is run, and |
00000500  72 65 74 75 72 6e 73 20  61 6e 20 65 72 72 6f 72  |returns an error|
00000510  20 69 66 20 74 68 69 73  20 69 73 20 6e 6f 74 20  | if this is not |
00000520  61 20 67 72 61 70 68 69  63 73 20 6d 6f 64 65 2e  |a graphics mode.|
00000530  20 54 68 69 73 20 69 73  20 6f 66 20 6e 6f 0d 62  | This is of no.b|
00000540  65 6e 65 66 69 74 20 69  6e 20 44 69 61 67 72 61  |enefit in Diagra|
00000550  6d 2c 20 61 73 20 74 68  69 73 20 61 6c 77 61 79  |m, as this alway|
00000560  73 20 72 75 6e 73 20 69  6e 20 4d 6f 64 65 20 30  |s runs in Mode 0|
00000570  2c 20 62 75 74 20 6d 65  61 6e 73 20 74 68 61 74  |, but means that|
00000580  20 74 68 65 20 64 75 6d  70 0d 2d 1a 20 63 61 6c  | the dump.-. cal|
00000590  6c 65 64 20 62 79 20 2a  55 43 4f 44 45 20 2d 20  |led by *UCODE - |
000005a0  63 61 6e 20 62 65 20 20  75 73 65 64 20 75 6e 69  |can be  used uni|
000005b0  76 65 72 73 61 6c 6c 79  2c 1a 20 66 6f 72 1a 20  |versally,. for. |
000005c0  70 72 69 6e 74 69 6e 67  1a 20 6f 75 74 1a 20 74  |printing. out. t|
000005d0  69 74 6c 65 0d 73 63 72  65 65 6e 73 2c 20 65 74  |itle.screens, et|
000005e0  63 2e 0d 20 20 20 20 20  20 20 54 68 65 20 70 72  |c..       The pr|
000005f0  6f 67 72 61 6d 20 44 69  61 67 72 61 6d 32 20 66  |ogram Diagram2 f|
00000600  72 6f 6d 20 45 55 47 31  36 1a 20 77 69 6c 6c 20  |rom EUG16. will |
00000610  6e 65 65 64 20 74 77 6f  20 6d 69 6e 6f 72 20 63  |need two minor c|
00000620  68 61 6e 67 65 73 20 74  6f 20 75 73 65 0d 74 68  |hanges to use.th|
00000630  65 20 6e 65 77 20 64 75  6d 70 3a 0d 20 20 20 20  |e new dump:.    |
00000640  20 20 20 28 61 29 20 43  68 61 6e 67 65 20 6c 69  |   (a) Change li|
00000650  6e 65 20 38 30 30 20 74  6f 3a 20 38 30 30 20 2a  |ne 800 to: 800 *|
00000660  55 43 4f 44 45 0d 20 20  20 20 20 20 20 28 62 29  |UCODE.       (b)|
00000670  20 44 65 6c 65 74 65 20  6c 69 6e 65 20 38 30 34  | Delete line 804|
00000680  0d 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000690  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000006b0  20 20 4d 61 74 74 68 65  77 20 46 6f 72 64 0d     |  Matthew Ford.|
000006bf
DiagDump/Text.m0
DiagDump/Text.m1
DiagDump/Text.m2
DiagDump/Text.m4
DiagDump/Text.m5