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

Compare DiagDump/Text with P/DText1

File: Personal collection » Acorn ADFS disks » Electron » EUG_submission_2.ADF » DiagDump/Text
Compared with: Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_18.ADF » P/DText1
Similarity: 91% of bytes duplicated

91.3% of the bytes in these files are duplicated between them. Duplicated Different Padding (ignored)

Bytes are marked as duplicated if they lie within a run of at least 16 bytes which also appears somewhere in the other file, in any position. Long runs of padding bytes (zeros, spaces, &FF and &E5) are ignored.

DiagDump/Text
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 1a 20 68  |eds had. been. h|
00000170  61 6c 76 65 64 2c 1a 20  77 68 69 6c 65 1a 20 74  |alved,. while. t|
00000180  68 65 1a 20 73 69 7a 65  1a 20 6f 66 1a 20 74 68  |he. size. of. th|
00000190  65 1a 20 70 72 69 6e 74  65 72 20 68 65 61 64 0d  |e. printer head.|
000001a0  72 65 6d 61 69 6e 65 64  1a 20 74 68 65 1a 20 73  |remained. the. s|
000001b0  61 6d 65 2e 1a 20 54 68  69 73 1a 20 72 65 73 75  |ame.. This. resu|
000001c0  6c 74 65 64 1a 20 69 6e  1a 20 74 68 65 1a 20 6c  |lted. in. the. l|
000001d0  69 6e 65 73 20 6f 66 20  70 72 69 6e 74 20 6f 76  |ines of print ov|
000001e0  65 72 6c 61 70 70 69 6e  67 2c 0d 70 72 6f 64 75  |erlapping,.produ|
000001f0  63 69 6e 67 20 61 20 64  69 73 74 6f 72 74 65 64  |cing a distorted|
00000200  20 65 66 66 65 63 74 2e  20 54 68 65 20 72 65 6d  | effect. The rem|
00000210  65 64 79 20 77 61 73 20  74 6f 20 70 75 74 20 74  |edy was to put t|
00000220  68 65 20 6c 69 6e 65 20  66 65 65 64 73 20 62 61  |he line feeds ba|
00000230  63 6b 20 74 6f 0d 6e 6f  72 6d 61 6c 2c 20 61 6e  |ck to.normal, an|
00000240  64 20 69 6e 73 74 65 61  64 20 63 68 61 6e 67 65  |d instead change|
00000250  20 74 68 65 20 6e 75 6d  62 65 72 20 6f 66 20 70  | the number of p|
00000260  69 6e 73 20 6f 66 20 74  68 65 20 68 65 61 64 20  |ins of the head |
00000270  63 6f 72 72 65 73 70 6f  6e 64 69 6e 67 20 74 6f  |corresponding to|
00000280  0d 65 61 63 68 20 70 69  78 65 6c 2c 20 66 72 6f  |.each pixel, fro|
00000290  6d 20 32 20 74 6f 20 31  2e 20 48 6f 77 65 76 65  |m 2 to 1. Howeve|
000002a0  72 2c 20 49 20 64 69 73  63 6f 76 65 72 65 64 20  |r, I discovered |
000002b0  6f 6e 20 74 68 65 20 45  55 47 31 37 20 64 69 73  |on the EUG17 dis|
000002c0  63 2c 20 74 68 61 74 20  47 75 73 0d 68 61 64 20  |c, that Gus.had |
000002d0  66 6f 75 6e 64 20 61 20  62 65 74 74 65 72 20 73  |found a better s|
000002e0  6f 6c 75 74 69 6f 6e 3a  20 63 68 61 6e 67 65 20  |olution: change |
000002f0  74 68 65 20 64 6f 74 1a  20 64 65 6e 73 69 74 79  |the dot. density|
00000300  1a 20 74 6f 1a 20 6d 61  6b 65 1a 20 74 68 65 20  |. to. make. the |
00000310  6f 75 74 70 75 74 0d 66  69 6c 6c 20 74 68 65 20  |output.fill the |
00000320  77 68 6f 6c 65 20 77 69  64 74 68 20 6f 66 20 74  |whole width of t|
00000330  68 65 20 63 61 72 72 69  61 67 65 20 28 38 20 69  |he carriage (8 i|
00000340  6e 63 68 65 73 29 20 2d  20 74 68 65 6e 20 74 68  |nches) - then th|
00000350  65 1a 20 68 65 69 67 68  74 1a 20 6f 66 20 74 68  |e. height. of th|
00000360  65 0d 70 72 69 6e 74 6f  75 74 20 64 6f 65 73 6e  |e.printout doesn|
00000370  27 74 20 6e 65 65 64 20  74 6f 20 62 65 20 63 68  |'t need to be ch|
00000380  61 6e 67 65 64 20 61 74  20 61 6c 6c 21 0d 20 32  |anged at all!. 2|
00000390  29 20 49 20 68 61 76 65  20 61 64 64 65 64 20 61  |) I have added a|
000003a0  1a 20 72 6f 75 74 69 6e  65 1a 20 74 6f 20 61 6c  |. routine. to al|
000003b0  6c 6f 77 20 6f 6e 6c 79  20 70 61 72 74 20 6f 66  |low only part of|
000003c0  20 74 68 65 20 73 63 72  65 65 6e 20 74 6f 20 62  | the screen to b|
000003d0  65 20 64 75 6d 70 65 64  0d 28 61 73 20 72 65 71  |e dumped.(as req|
000003e0  75 69 72 65 64 20 62 79  20 44 69 61 67 72 61 6d  |uired by Diagram|
000003f0  29 2e 20 57 68 65 6e 20  74 68 65 20 73 6f 75 72  |). When the sour|
00000400  63 65 20 70 72 6f 67 72  61 6d 20 69 73 20 72 75  |ce program is ru|
00000410  6e 2c 20 79 6f 75 20 73  68 6f 75 6c 64 20 65 6e  |n, you should en|
00000420  74 65 72 0d 74 68 65 20  74 65 78 74 20 6c 69 6e  |ter.the text lin|
00000430  65 73 20 28 77 68 69 63  68 20 72 75 6e 20 66 72  |es (which run fr|
00000440  6f 6d 20 30 1a 20 74 6f  1a 20 33 31 20 64 6f 77  |om 0. to. 31 dow|
00000450  6e 20 74 68 65 20 73 63  72 65 65 6e 29 20 63 6f  |n the screen) co|
00000460  72 72 65 73 70 6f 6e 64  69 6e 67 20 74 6f 0d 74  |rresponding to.t|
00000470  68 65 20 61 72 65 61 20  6e 65 65 64 65 64 20 2d  |he area needed -|
00000480  20 6e 6f 74 65 20 74 68  61 74 20 74 68 65 20 61  | note that the a|
00000490  72 65 61 20 69 6e 63 6c  75 64 65 73 1a 20 62 6f  |rea includes. bo|
000004a0  74 68 20 6f 66 20 74 68  65 20 6c 69 6d 69 74 73  |th of the limits|
000004b0  20 79 6f 75 20 73 65 74  2c 0d 73 6f 20 69 66 20  | you set,.so if |
000004c0  79 6f 75 20 65 6e 74 65  72 20 31 20 61 6e 64 20  |you enter 1 and |
000004d0  32 20 61 73 20 74 68 65  20 6c 69 6d 69 74 73 2c  |2 as the limits,|
000004e0  1a 20 32 1a 20 74 65 78  74 20 6c 69 6e 65 73 20  |. 2. text lines |
000004f0  77 69 6c 6c 20 62 65 20  70 72 69 6e 74 65 64 2e  |will be printed.|
00000500  20 46 6f 72 0d 44 69 61  67 72 61 6d 2c 1a 20 79  | For.Diagram,. y|
00000510  6f 75 1a 20 73 68 6f 75  6c 64 20 65 6e 74 65 72  |ou. should enter|
00000520  20 6c 69 6e 65 73 20 33  20 61 6e 64 20 32 35 20  | lines 3 and 25 |
00000530  61 73 20 74 68 65 20 73  74 61 72 74 20 61 6e 64  |as the start and|
00000540  1a 20 66 69 6e 69 73 68  1a 20 6c 69 6e 65 73 0d  |. finish. lines.|
00000550  72 65 73 70 65 63 74 69  76 65 6c 79 2e 0d 20 33  |respectively.. 3|
00000560  29 20 49 20 68 61 76 65  20 65 6c 69 6d 69 6e 61  |) I have elimina|
00000570  74 65 64 20 74 68 65 1a  20 6e 65 65 64 1a 20 66  |ted the. need. f|
00000580  6f 72 1a 20 61 20 73 65  70 61 72 61 74 65 20 66  |or. a separate f|
00000590  69 6c 65 20 74 6f 20 62  65 20 73 61 76 65 64 20  |ile to be saved |
000005a0  66 6f 72 20 65 61 63 68  0d 73 63 72 65 65 6e 20  |for each.screen |
000005b0  6d 6f 64 65 20 2d 20 74  68 65 20 70 72 6f 67 72  |mode - the progr|
000005c0  61 6d 20 6e 6f 77 20 72  65 61 64 73 20 74 68 65  |am now reads the|
000005d0  1a 20 73 63 72 65 65 6e  20 6d 6f 64 65 20 64 69  |. screen mode di|
000005e0  72 65 63 74 6c 79 20 65  61 63 68 20 74 69 6d 65  |rectly each time|
000005f0  20 69 74 0d 69 73 20 72  75 6e 2c 20 61 6e 64 20  | it.is run, and |
00000600  72 65 74 75 72 6e 73 20  61 6e 20 65 72 72 6f 72  |returns an error|
00000610  20 69 66 20 74 68 69 73  20 69 73 20 6e 6f 74 20  | if this is not |
00000620  61 20 67 72 61 70 68 69  63 73 20 6d 6f 64 65 2e  |a graphics mode.|
00000630  0d 20 34 29 20 46 6f 72  20 6d 6f 73 74 20 70 75  |. 4) For most pu|
00000640  72 70 6f 73 65 73 2c 20  74 68 65 1a 20 6f 75 74  |rposes, the. out|
00000650  70 75 74 20 66 72 6f 6d  20 61 20 73 63 72 65 65  |put from a scree|
00000660  6e 20 64 75 6d 70 20 6e  65 65 64 73 20 74 6f 20  |n dump needs to |
00000670  62 65 20 69 6e 76 65 72  74 65 64 0d 28 73 6f 20  |be inverted.(so |
00000680  74 68 61 74 20 74 68 65  20 62 6c 61 63 6b 20 69  |that the black i|
00000690  6e 6b 20 69 6e 1a 20 74  68 65 1a 20 70 72 69 6e  |nk in. the. prin|
000006a0  74 65 72 1a 20 69 73 20  75 73 65 64 20 66 6f 72  |ter. is used for|
000006b0  20 74 68 65 20 66 6f 72  65 67 72 6f 75 6e 64 2c  | the foreground,|
000006c0  20 77 68 69 63 68 0d 6e  6f 72 6d 61 6c 6c 79 20  | which.normally |
000006d0  61 70 70 65 61 72 73 20  77 68 69 74 65 20 6f 6e  |appears white on|
000006e0  20 74 68 65 20 73 63 72  65 65 6e 29 2e 20 54 68  | the screen). Th|
000006f0  65 20 6f 75 74 70 75 74  20 66 72 6f 6d 1a 20 74  |e output from. t|
00000700  68 69 73 1a 20 70 72 6f  67 72 61 6d 1a 20 28 61  |his. program. (a|
00000710  73 0d 70 75 62 6c 69 73  68 65 64 1a 20 62 79 1a  |s.published. by.|
00000720  20 74 68 65 1a 20 45 6c  65 63 74 72 6f 6e 1a 20  | the. Electron. |
00000730  55 73 65 72 29 2c 1a 20  77 61 73 1a 20 61 6c 77  |User),. was. alw|
00000740  61 79 73 1a 20 69 6e 76  65 72 74 65 64 2e 1a 20  |ays. inverted.. |
00000750  48 6f 77 65 76 65 72 20  73 6f 6d 65 0d 70 69 63  |However some.pic|
00000760  74 75 72 65 73 20 28 73  75 63 68 20 61 73 20 68  |tures (such as h|
00000770  75 6d 61 6e 20 66 61 63  65 73 29 20 64 6f 20 72  |uman faces) do r|
00000780  65 71 75 69 72 65 20 61  20 74 72 75 65 1a 20 6f  |equire a true. o|
00000790  75 74 70 75 74 2e 1a 20  54 68 69 73 1a 20 69 73  |utput.. This. is|
000007a0  20 73 69 6d 70 6c 65 0d  65 6e 6f 75 67 68 20 74  | simple.enough t|
000007b0  6f 20 61 64 64 20 74 6f  20 74 68 65 20 70 72 6f  |o add to the pro|
000007c0  67 72 61 6d 3a 20 6a 75  73 74 20 45 4f 52 20 61  |gram: just EOR a|
000007d0  6c 6c 20 74 68 65 20 64  61 74 61 20 77 69 74 68  |ll the data with|
000007e0  1a 20 26 46 46 1a 20 62  65 66 6f 72 65 20 74 68  |. &FF. before th|
000007f0  65 79 0d 61 72 65 1a 20  73 65 6e 74 20 74 6f 20  |ey.are. sent to |
00000800  74 68 65 20 70 72 69 6e  74 65 72 2e 20 49 20 61  |the printer. I a|
00000810  64 64 65 64 20 74 68 69  73 20 66 61 63 69 6c 69  |dded this facili|
00000820  74 79 2c 20 6f 6e 6c 79  20 74 6f 20 64 69 73 63  |ty, only to disc|
00000830  6f 76 65 72 20 74 68 61  74 20 74 68 65 0d 70 61  |over that the.pa|
00000840  74 74 65 72 6e 73 20 75  73 65 64 1a 20 62 79 1a  |tterns used. by.|
00000850  20 74 68 65 1a 20 64 75  6d 70 1a 20 61 72 65 6e  | the. dump. aren|
00000860  27 74 1a 20 70 72 6f 70  65 72 20 69 6e 76 65 72  |'t. proper inver|
00000870  73 65 73 20 61 74 20 61  6c 6c 20 2d 20 66 6f 72  |ses at all - for|
00000880  20 65 78 61 6d 70 6c 65  0d 79 65 6c 6c 6f 77 20  | example.yellow |
00000890  69 73 20 70 72 69 6e 74  65 64 20 6d 6f 72 65 20  |is printed more |
000008a0  73 69 6d 69 6c 61 72 6c  79 20 74 6f 20 62 6c 61  |similarly to bla|
000008b0  63 6b 1a 20 74 68 61 6e  1a 20 77 68 69 74 65 2e  |ck. than. white.|
000008c0  1a 20 54 68 65 72 65 66  6f 72 65 2c 20 49 20 68  |. Therefore, I h|
000008d0  61 76 65 0d 63 68 61 6e  67 65 64 20 6d 61 6e 79  |ave.changed many|
000008e0  20 6f 66 20 74 68 65 20  70 61 74 74 65 72 6e 73  | of the patterns|
000008f0  2e 0d 20 35 29 20 54 68  65 20 6f 72 69 67 69 6e  |.. 5) The origin|
00000900  61 6c 20 70 72 6f 67 72  61 6d 20 72 65 61 64 73  |al program reads|
00000910  1a 20 74 68 65 1a 20 73  63 72 65 65 6e 1a 20 75  |. the. screen. u|
00000920  73 69 6e 67 1a 20 6c 6f  67 69 63 61 6c 1a 20 63  |sing. logical. c|
00000930  6f 6c 6f 75 72 73 2c 1a  20 6e 6f 74 0d 61 63 74  |olours,. not.act|
00000940  75 61 6c 20 63 6f 6c 6f  75 72 73 20 2d 20 68 65  |ual colours - he|
00000950  6e 63 65 20 74 68 65 20  72 65 71 75 69 72 65 6d  |nce the requirem|
00000960  65 6e 74 20 66 6f 72 20  61 20 64 69 66 66 65 72  |ent for a differ|
00000970  65 6e 74 20 76 65 72 73  69 6f 6e 20 74 6f 20 62  |ent version to b|
00000980  65 20 73 61 76 65 64 0d  69 6e 1a 20 65 61 63 68  |e saved.in. each|
00000990  20 6d 6f 64 65 2e 20 49  20 68 61 76 65 20 61 64  | mode. I have ad|
000009a0  64 65 64 20 74 68 65 20  6f 70 74 69 6f 6e 20 6f  |ded the option o|
000009b0  66 20 75 73 69 6e 67 20  61 63 74 75 61 6c 20 63  |f using actual c|
000009c0  6f 6c 6f 75 72 73 20 69  6e 73 74 65 61 64 2c 20  |olours instead, |
000009d0  73 6f 0d 74 68 61 74 20  63 68 61 6e 67 69 6e 67  |so.that changing|
000009e0  1a 20 74 68 65 20 70 61  6c 65 74 74 65 20 6d 61  |. the palette ma|
000009f0  6b 65 73 20 61 20 64 69  66 66 65 72 65 6e 63 65  |kes a difference|
00000a00  20 74 6f 20 74 68 65 20  6f 75 74 70 75 74 2e 20  | to the output. |
00000a10  48 6f 77 65 76 65 72 2c  20 74 68 69 73 0d 63 61  |However, this.ca|
00000a20  6e 20 6d 61 6b 65 20 61  6e 1a 20 75 6e 64 65 73  |n make an. undes|
00000a30  69 72 61 62 6c 65 1a 20  6d 65 73 73 1a 20 69 66  |irable. mess. if|
00000a40  20 74 68 65 20 62 61 63  6b 67 72 6f 75 6e 64 20  | the background |
00000a50  69 73 20 6e 6f 74 20 62  6c 61 63 6b 2c 20 6f 72  |is not black, or|
00000a60  20 79 6f 75 20 61 72 65  0d 75 73 69 6e 67 20 61  | you are.using a|
00000a70  20 32 2d 63 6f 6c 6f 75  72 20 6d 6f 64 65 2c 20  | 2-colour mode, |
00000a80  73 6f 20 79 6f 75 20 6d  69 67 68 74 20 70 72 65  |so you might pre|
00000a90  66 65 72 20 74 6f 20 75  73 65 20 6c 6f 67 69 63  |fer to use logic|
00000aa0  61 6c 20 63 6f 6c 6f 75  72 73 2e 0d 20 36 29 20  |al colours.. 6) |
00000ab0  54 68 65 20 66 69 6c 65  6e 61 6d 65 20 66 6f 72  |The filename for|
00000ac0  20 74 68 65 20 63 6f 64  65 20 63 61 6e 20 62 65  | the code can be|
00000ad0  20 63 68 6f 73 65 6e 2e  0d 20 20 20 20 20 20 20  | chosen..       |
00000ae0  20 53 6f 6d 65 20 6f 66  20 74 68 65 73 65 20 63  | Some of these c|
00000af0  68 61 6e 67 65 73 20 61  72 65 20 6f 66 20 6e 6f  |hanges are of no|
00000b00  20 62 65 6e 65 66 69 74  20 69 6e 20 44 69 61 67  | benefit in Diag|
00000b10  72 61 6d 2c 20 61 73 20  74 68 69 73 20 61 6c 77  |ram, as this alw|
00000b20  61 79 73 0d 72 75 6e 73  20 69 6e 20 4d 6f 64 65  |ays.runs in Mode|
00000b30  20 30 2c 20 62 75 74 1a  20 6d 65 61 6e 73 1a 20  | 0, but. means. |
00000b40  74 68 61 74 1a 20 74 68  65 1a 20 64 75 6d 70 1a  |that. the. dump.|
00000b50  20 63 61 6e 20 62 65 20  20 75 73 65 64 20 75 6e  | can be  used un|
00000b60  69 76 65 72 73 61 6c 6c  79 2c 20 66 6f 72 0d 70  |iversally, for.p|
00000b70  72 69 6e 74 69 6e 67 20  6f 75 74 20 74 69 74 6c  |rinting out titl|
00000b80  65 20 73 63 72 65 65 6e  73 2c 20 65 74 63 2e 0d  |e screens, etc..|
00000b90  20 20 20 20 20 20 20 20  54 68 65 20 70 72 6f 67  |        The prog|
00000ba0  72 61 6d 20 44 69 61 67  72 61 6d 32 20 66 72 6f  |ram Diagram2 fro|
00000bb0  6d 20 45 55 47 31 36 20  77 69 6c 6c 20 6e 65 65  |m EUG16 will nee|
00000bc0  64 20 74 77 6f 20 6d 69  6e 6f 72 20 63 68 61 6e  |d two minor chan|
00000bd0  67 65 73 20 74 6f 20 75  73 65 0d 74 68 65 20 6e  |ges to use.the n|
00000be0  65 77 20 64 75 6d 70 3a  0d 20 20 20 20 20 20 20  |ew dump:.       |
00000bf0  28 61 29 20 43 68 61 6e  67 65 20 6c 69 6e 65 20  |(a) Change line |
00000c00  38 30 30 20 74 6f 3a 20  38 30 30 20 2a 55 43 4f  |800 to: 800 *UCO|
00000c10  44 45 20 20 20 20 20 28  61 73 73 75 6d 69 6e 67  |DE     (assuming|
00000c20  20 74 68 65 20 63 6f 64  65 20 77 61 73 20 73 61  | the code was sa|
00000c30  76 65 64 0d 20 20 20 20  20 20 20 20 20 20 20 20  |ved.            |
00000c40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000c60  20 20 20 61 73 20 22 55  43 4f 44 45 22 29 0d 20  |   as "UCODE"). |
00000c70  20 20 20 20 20 20 28 62  29 20 44 65 6c 65 74 65  |      (b) Delete|
00000c80  20 6c 69 6e 65 20 38 30  34 0d 20 20 20 20 20 20  | line 804.      |
00000c90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000cb0  20 20 20 20 20 20 20 20  20 20 20 4d 61 74 74 68  |           Matth|
00000cc0  65 77 20 46 6f 72 64 0d                            |ew Ford.|
00000cc8
P/DText1
00000000  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000010  20 20 20 20 20 20 20 20  44 69 61 67 72 61 6d 20  |        Diagram |
00000020  53 63 72 65 65 6e 20 44  75 6d 70 0d 0d 49 20 68  |Screen Dump..I h|
00000030  61 76 65 20 6d 61 64 65  20 73 6f 6d 65 20 69 6d  |ave made some im|
00000040  70 72 6f 76 65 6d 65 6e  74 73 20 74 6f 20 74 68  |provements to th|
00000050  65 20 73 63 72 65 65 6e  20 64 75 6d 70 20 66 72  |e screen dump fr|
00000060  6f 6d 20 45 55 47 31 36  3a 0d 20 31 29 20 54 68  |om EUG16:. 1) Th|
00000070  65 20 6f 75 74 70 75 74  20 66 72 6f 6d 20 74 68  |e output from th|
00000080  69 73 1a 20 64 75 6d 70  1a 20 6f 6e 1a 20 6d 79  |is. dump. on. my|
00000090  1a 20 50 61 6e 61 73 6f  6e 69 63 1a 20 4b 58 2d  |. Panasonic. KX-|
000000a0  50 31 30 38 31 20 70 72  69 6e 74 65 72 20 0d 6c  |P1081 printer .l|
000000b0  6f 6f 6b 65 64 10 73 6c  69 67 68 74 6c 79 1a 20  |ooked.slightly. |
000000c0  64 69 73 74 6f 72 74 65  64 2c 1a 20 61 6e 64 1a  |distorted,. and.|
000000d0  20 6c 6f 77 65 72 20 63  61 73 65 20 74 65 78 74  | lower case text|
000000e0  20 77 61 73 20 69 6c 6c  65 67 69 62 6c 65 2e 20  | was illegible. |
000000f0  0d 54 68 69 73 20 77 61  73 20 62 65 63 61 75 73  |.This was becaus|
00000100  65 10 74 68 65 20 6c 69  6e 65 20 66 65 65 64 73  |e.the line feeds|
00000110  20 68 61 64 1a 20 62 65  65 6e 1a 20 68 61 6c 76  | had. been. halv|
00000120  65 64 2c 1a 20 77 68 69  6c 65 1a 20 74 68 65 1a  |ed,. while. the.|
00000130  20 0d 73 69 7a 65 1a 20  6f 66 1a 20 74 68 65 1a  | .size. of. the.|
00000140  20 70 72 69 6e 74 65 72  20 68 65 61 64 10 72 65  | printer head.re|
00000150  6d 61 69 6e 65 64 1a 20  74 68 65 1a 20 73 61 6d  |mained. the. sam|
00000160  65 2e 1a 20 54 68 69 73  1a 20 72 65 73 75 6c 74  |e.. This. result|
00000170  65 64 1a 20 69 6e 1a 20  0d 74 68 65 1a 20 6c 69  |ed. in. .the. li|
00000180  6e 65 73 20 6f 66 20 70  72 69 6e 74 20 6f 76 65  |nes of print ove|
00000190  72 6c 61 70 70 69 6e 67  2c 10 70 72 6f 64 75 63  |rlapping,.produc|
000001a0  69 6e 67 20 61 20 64 69  73 74 6f 72 74 65 64 20  |ing a distorted |
000001b0  65 66 66 65 63 74 2e 20  0d 54 68 65 20 72 65 6d  |effect. .The rem|
000001c0  65 64 79 20 77 61 73 20  74 6f 20 70 75 74 20 74  |edy was to put t|
000001d0  68 65 20 6c 69 6e 65 20  66 65 65 64 73 20 62 61  |he line feeds ba|
000001e0  63 6b 20 74 6f 10 6e 6f  72 6d 61 6c 2c 20 61 6e  |ck to.normal, an|
000001f0  64 20 0d 69 6e 73 74 65  61 64 20 63 68 61 6e 67  |d .instead chang|
00000200  65 20 74 68 65 20 6e 75  6d 62 65 72 20 6f 66 20  |e the number of |
00000210  70 69 6e 73 20 6f 66 20  74 68 65 20 68 65 61 64  |pins of the head|
00000220  20 63 6f 72 72 65 73 70  6f 6e 64 69 6e 67 20 74  | corresponding t|
00000230  6f 10 0d 65 61 63 68 20  70 69 78 65 6c 2c 20 66  |o..each pixel, f|
00000240  72 6f 6d 20 32 20 74 6f  20 31 2e 20 48 6f 77 65  |rom 2 to 1. Howe|
00000250  76 65 72 2c 20 49 20 64  69 73 63 6f 76 65 72 65  |ver, I discovere|
00000260  64 20 6f 6e 20 74 68 65  20 45 55 47 31 37 20 0d  |d on the EUG17 .|
00000270  64 69 73 63 2c 20 74 68  61 74 20 47 75 73 10 68  |disc, that Gus.h|
00000280  61 64 20 66 6f 75 6e 64  20 61 20 62 65 74 74 65  |ad found a bette|
00000290  72 20 73 6f 6c 75 74 69  6f 6e 3a 20 63 68 61 6e  |r solution: chan|
000002a0  67 65 20 74 68 65 20 64  6f 74 1a 20 0d 64 65 6e  |ge the dot. .den|
000002b0  73 69 74 79 1a 20 74 6f  1a 20 6d 61 6b 65 1a 20  |sity. to. make. |
000002c0  74 68 65 20 6f 75 74 70  75 74 10 66 69 6c 6c 20  |the output.fill |
000002d0  74 68 65 20 77 68 6f 6c  65 20 77 69 64 74 68 20  |the whole width |
000002e0  6f 66 20 74 68 65 20 0d  63 61 72 72 69 61 67 65  |of the .carriage|
000002f0  20 28 38 20 69 6e 63 68  65 73 29 20 2d 20 74 68  | (8 inches) - th|
00000300  65 6e 20 74 68 65 1a 20  68 65 69 67 68 74 1a 20  |en the. height. |
00000310  6f 66 20 74 68 65 10 70  72 69 6e 74 6f 75 74 20  |of the.printout |
00000320  64 6f 65 73 6e 27 74 20  0d 6e 65 65 64 20 74 6f  |doesn't .need to|
00000330  20 62 65 20 63 68 61 6e  67 65 64 20 61 74 20 61  | be changed at a|
00000340  6c 6c 21 0d 20 32 29 20  49 20 68 61 76 65 20 61  |ll!. 2) I have a|
00000350  64 64 65 64 20 61 1a 20  72 6f 75 74 69 6e 65 1a  |dded a. routine.|
00000360  20 74 6f 20 61 6c 6c 6f  77 20 6f 6e 6c 79 20 70  | to allow only p|
00000370  61 72 74 20 6f 66 20 74  68 65 20 73 63 72 65 65  |art of the scree|
00000380  6e 20 74 6f 20 0d 62 65  20 64 75 6d 70 65 64 10  |n to .be dumped.|
00000390  28 61 73 20 72 65 71 75  69 72 65 64 20 62 79 20  |(as required by |
000003a0  44 69 61 67 72 61 6d 29  2e 20 57 68 65 6e 20 74  |Diagram). When t|
000003b0  68 65 20 73 6f 75 72 63  65 20 70 72 6f 67 72 61  |he source progra|
000003c0  6d 20 69 73 20 0d 72 75  6e 2c 20 79 6f 75 20 73  |m is .run, you s|
000003d0  68 6f 75 6c 64 20 65 6e  74 65 72 10 74 68 65 20  |hould enter.the |
000003e0  74 65 78 74 20 6c 69 6e  65 73 20 28 77 68 69 63  |text lines (whic|
000003f0  68 20 72 75 6e 20 66 72  6f 6d 20 30 1a 20 74 6f  |h run from 0. to|
00000400  1a 20 33 31 20 0d 64 6f  77 6e 20 74 68 65 20 73  |. 31 .down the s|
00000410  63 72 65 65 6e 29 20 63  6f 72 72 65 73 70 6f 6e  |creen) correspon|
00000420  64 69 6e 67 20 74 6f 10  74 68 65 20 61 72 65 61  |ding to.the area|
00000430  20 6e 65 65 64 65 64 20  2d 20 6e 6f 74 65 20 74  | needed - note t|
00000440  68 61 74 20 0d 74 68 65  20 61 72 65 61 20 69 6e  |hat .the area in|
00000450  63 6c 75 64 65 73 1a 20  62 6f 74 68 20 6f 66 20  |cludes. both of |
00000460  74 68 65 20 6c 69 6d 69  74 73 20 79 6f 75 20 73  |the limits you s|
00000470  65 74 2c 10 73 6f 20 69  66 20 79 6f 75 20 65 6e  |et,.so if you en|
00000480  74 65 72 20 0d 31 20 61  6e 64 20 32 20 61 73 20  |ter .1 and 2 as |
00000490  74 68 65 20 6c 69 6d 69  74 73 2c 1a 20 32 1a 20  |the limits,. 2. |
000004a0  74 65 78 74 20 6c 69 6e  65 73 20 77 69 6c 6c 20  |text lines will |
000004b0  62 65 20 70 72 69 6e 74  65 64 2e 20 46 6f 72 10  |be printed. For.|
000004c0  0d 44 69 61 67 72 61 6d  2c 1a 20 79 6f 75 1a 20  |.Diagram,. you. |
000004d0  73 68 6f 75 6c 64 20 65  6e 74 65 72 20 6c 69 6e  |should enter lin|
000004e0  65 73 20 33 20 61 6e 64  20 32 35 20 61 73 20 74  |es 3 and 25 as t|
000004f0  68 65 20 73 74 61 72 74  20 61 6e 64 1a 20 0d 66  |he start and. .f|
00000500  69 6e 69 73 68 1a 20 6c  69 6e 65 73 10 72 65 73  |inish. lines.res|
00000510  70 65 63 74 69 76 65 6c  79 2e 0d 20 33 29 20 49  |pectively.. 3) I|
00000520  20 68 61 76 65 20 65 6c  69 6d 69 6e 61 74 65 64  | have eliminated|
00000530  20 74 68 65 1a 20 6e 65  65 64 1a 20 66 6f 72 1a  | the. need. for.|
00000540  20 61 20 73 65 70 61 72  61 74 65 20 66 69 6c 65  | a separate file|
00000550  20 74 6f 20 62 65 20 73  61 76 65 64 20 0d 66 6f  | to be saved .fo|
00000560  72 20 65 61 63 68 10 73  63 72 65 65 6e 20 6d 6f  |r each.screen mo|
00000570  64 65 20 2d 20 74 68 65  20 70 72 6f 67 72 61 6d  |de - the program|
00000580  20 6e 6f 77 20 72 65 61  64 73 20 74 68 65 1a 20  | now reads the. |
00000590  73 63 72 65 65 6e 20 6d  6f 64 65 20 0d 64 69 72  |screen mode .dir|
000005a0  65 63 74 6c 79 20 65 61  63 68 20 74 69 6d 65 20  |ectly each time |
000005b0  69 74 10 69 73 20 72 75  6e 2c 20 61 6e 64 20 72  |it.is run, and r|
000005c0  65 74 75 72 6e 73 20 61  6e 20 65 72 72 6f 72 20  |eturns an error |
000005d0  69 66 20 74 68 69 73 20  69 73 20 0d 6e 6f 74 20  |if this is .not |
000005e0  61 20 67 72 61 70 68 69  63 73 20 6d 6f 64 65 2e  |a graphics mode.|
000005f0  0d 20 34 29 20 46 6f 72  20 6d 6f 73 74 20 70 75  |. 4) For most pu|
00000600  72 70 6f 73 65 73 2c 20  74 68 65 1a 20 6f 75 74  |rposes, the. out|
00000610  70 75 74 20 66 72 6f 6d  20 61 20 73 63 72 65 65  |put from a scree|
00000620  6e 20 64 75 6d 70 20 6e  65 65 64 73 20 74 6f 20  |n dump needs to |
00000630  0d 62 65 20 69 6e 76 65  72 74 65 64 10 28 73 6f  |.be inverted.(so|
00000640  20 74 68 61 74 20 74 68  65 20 62 6c 61 63 6b 20  | that the black |
00000650  69 6e 6b 20 69 6e 1a 20  74 68 65 1a 20 70 72 69  |ink in. the. pri|
00000660  6e 74 65 72 1a 20 69 73  20 75 73 65 64 20 66 6f  |nter. is used fo|
00000670  72 20 0d 74 68 65 20 66  6f 72 65 67 72 6f 75 6e  |r .the foregroun|
00000680  64 2c 20 77 68 69 63 68  10 6e 6f 72 6d 61 6c 6c  |d, which.normall|
00000690  79 20 61 70 70 65 61 72  73 20 77 68 69 74 65 20  |y appears white |
000006a0  6f 6e 20 74 68 65 20 73  63 72 65 65 6e 29 2e 20  |on the screen). |
000006b0  0d 54 68 65 20 6f 75 74  70 75 74 20 66 72 6f 6d  |.The output from|
000006c0  1a 20 74 68 69 73 1a 20  70 72 6f 67 72 61 6d 1a  |. this. program.|
000006d0  20 28 61 73 10 70 75 62  6c 69 73 68 65 64 1a 20  | (as.published. |
000006e0  62 79 1a 20 74 68 65 1a  20 45 6c 65 63 74 72 6f  |by. the. Electro|
000006f0  6e 1a 20 0d 55 73 65 72  29 2c 1a 20 77 61 73 1a  |n. .User),. was.|
00000700  20 61 6c 77 61 79 73 1a  20 69 6e 76 65 72 74 65  | always. inverte|
00000710  64 2e 1a 20 48 6f 77 65  76 65 72 20 73 6f 6d 65  |d.. However some|
00000720  10 70 69 63 74 75 72 65  73 20 28 73 75 63 68 20  |.pictures (such |
00000730  61 73 20 0d 68 75 6d 61  6e 20 66 61 63 65 73 29  |as .human faces)|
00000740  20 64 6f 20 72 65 71 75  69 72 65 20 61 20 74 72  | do require a tr|
00000750  75 65 1a 20 6f 75 74 70  75 74 2e 1a 20 54 68 69  |ue. output.. Thi|
00000760  73 1a 20 69 73 20 73 69  6d 70 6c 65 10 65 6e 6f  |s. is simple.eno|
00000770  75 67 68 20 0d 74 6f 20  61 64 64 20 74 6f 20 74  |ugh .to add to t|
00000780  68 65 20 70 72 6f 67 72  61 6d 3a 20 6a 75 73 74  |he program: just|
00000790  20 45 4f 52 20 61 6c 6c  20 74 68 65 20 64 61 74  | EOR all the dat|
000007a0  61 20 77 69 74 68 1a 20  26 46 46 1a 20 62 65 66  |a with. &FF. bef|
000007b0  6f 72 65 20 0d 74 68 65  79 10 61 72 65 1a 20 73  |ore .they.are. s|
000007c0  65 6e 74 20 74 6f 20 74  68 65 20 70 72 69 6e 74  |ent to the print|
000007d0  65 72 2e 20 49 20 61 64  64 65 64 20 74 68 69 73  |er. I added this|
000007e0  20 66 61 63 69 6c 69 74  79 2c 20 6f 6e 6c 79 20  | facility, only |
000007f0  74 6f 20 0d 64 69 73 63  6f 76 65 72 20 74 68 61  |to .discover tha|
00000800  74 20 74 68 65 10 70 61  74 74 65 72 6e 73 20 75  |t the.patterns u|
00000810  73 65 64 1a 20 62 79 1a  20 74 68 65 1a 20 64 75  |sed. by. the. du|
00000820  6d 70 1a 20 61 72 65 6e  27 74 1a 20 70 72 6f 70  |mp. aren't. prop|
00000830  65 72 20 0d 69 6e 76 65  72 73 65 73 20 61 74 20  |er .inverses at |
00000840  61 6c 6c 20 2d 20 66 6f  72 20 65 78 61 6d 70 6c  |all - for exampl|
00000850  65 10 79 65 6c 6c 6f 77  20 69 73 20 70 72 69 6e  |e.yellow is prin|
00000860  74 65 64 20 6d 6f 72 65  20 73 69 6d 69 6c 61 72  |ted more similar|
00000870  6c 79 20 0d 74 6f 20 62  6c 61 63 6b 1a 20 74 68  |ly .to black. th|
00000880  61 6e 1a 20 77 68 69 74  65 2e 1a 20 54 68 65 72  |an. white.. Ther|
00000890  65 66 6f 72 65 2c 20 49  20 68 61 76 65 10 63 68  |efore, I have.ch|
000008a0  61 6e 67 65 64 20 6d 61  6e 79 20 6f 66 20 74 68  |anged many of th|
000008b0  65 20 0d 70 61 74 74 65  72 6e 73 2e 0d 20 35 29  |e .patterns.. 5)|
000008c0  20 54 68 65 20 6f 72 69  67 69 6e 61 6c 20 70 72  | The original pr|
000008d0  6f 67 72 61 6d 20 72 65  61 64 73 1a 20 74 68 65  |ogram reads. the|
000008e0  1a 20 73 63 72 65 65 6e  1a 20 75 73 69 6e 67 1a  |. screen. using.|
000008f0  20 6c 6f 67 69 63 61 6c  1a 20 0d 63 6f 6c 6f 75  | logical. .colou|
00000900  72 73 2c 1a 20 6e 6f 74  10 61 63 74 75 61 6c 20  |rs,. not.actual |
00000910  63 6f 6c 6f 75 72 73 20  2d 20 68 65 6e 63 65 20  |colours - hence |
00000920  74 68 65 20 72 65 71 75  69 72 65 6d 65 6e 74 20  |the requirement |
00000930  66 6f 72 20 61 20 0d 64  69 66 66 65 72 65 6e 74  |for a .different|
00000940  20 76 65 72 73 69 6f 6e  20 74 6f 20 62 65 20 73  | version to be s|
00000950  61 76 65 64 10 69 6e 1a  20 65 61 63 68 20 6d 6f  |aved.in. each mo|
00000960  64 65 2e 20 49 20 68 61  76 65 20 61 64 64 65 64  |de. I have added|
00000970  20 74 68 65 20 0d 6f 70  74 69 6f 6e 20 6f 66 20  | the .option of |
00000980  75 73 69 6e 67 20 61 63  74 75 61 6c 20 63 6f 6c  |using actual col|
00000990  6f 75 72 73 20 69 6e 73  74 65 61 64 2c 20 73 6f  |ours instead, so|
000009a0  10 74 68 61 74 20 63 68  61 6e 67 69 6e 67 1a 20  |.that changing. |
000009b0  74 68 65 20 0d 70 61 6c  65 74 74 65 20 6d 61 6b  |the .palette mak|
000009c0  65 73 20 61 20 64 69 66  66 65 72 65 6e 63 65 20  |es a difference |
000009d0  74 6f 20 74 68 65 20 6f  75 74 70 75 74 2e 20 48  |to the output. H|
000009e0  6f 77 65 76 65 72 2c 20  74 68 69 73 10 63 61 6e  |owever, this.can|
000009f0  20 0d 6d 61 6b 65 20 61  6e 1a 20 75 6e 64 65 73  | .make an. undes|
00000a00  69 72 61 62 6c 65 1a 20  6d 65 73 73 1a 20 69 66  |irable. mess. if|
00000a10  20 74 68 65 20 62 61 63  6b 67 72 6f 75 6e 64 20  | the background |
00000a20  69 73 20 6e 6f 74 20 62  6c 61 63 6b 2c 20 6f 72  |is not black, or|
00000a30  20 0d 79 6f 75 20 61 72  65 10 75 73 69 6e 67 20  | .you are.using |
00000a40  61 20 32 2d 63 6f 6c 6f  75 72 20 6d 6f 64 65 2c  |a 2-colour mode,|
00000a50  20 73 6f 20 79 6f 75 20  6d 69 67 68 74 20 70 72  | so you might pr|
00000a60  65 66 65 72 20 74 6f 20  75 73 65 20 0d 6c 6f 67  |efer to use .log|
00000a70  69 63 61 6c 20 63 6f 6c  6f 75 72 73 2e 0d 20 36  |ical colours.. 6|
00000a80  29 20 54 68 65 20 66 69  6c 65 6e 61 6d 65 20 66  |) The filename f|
00000a90  6f 72 20 74 68 65 20 63  6f 64 65 20 63 61 6e 20  |or the code can |
00000aa0  62 65 20 63 68 6f 73 65  6e 2e 0d 20 20 20 20 20  |be chosen..     |
00000ab0  20 20 20 53 6f 6d 65 20  6f 66 20 74 68 65 73 65  |   Some of these|
00000ac0  20 63 68 61 6e 67 65 73  20 61 72 65 20 6f 66 20  | changes are of |
00000ad0  6e 6f 20 62 65 6e 65 66  69 74 20 69 6e 20 44 69  |no benefit in Di|
00000ae0  61 67 72 61 6d 2c 20 61  73 20 0d 74 68 69 73 20  |agram, as .this |
00000af0  61 6c 77 61 79 73 10 72  75 6e 73 20 69 6e 20 4d  |always.runs in M|
00000b00  6f 64 65 20 30 2c 20 62  75 74 1a 20 6d 65 61 6e  |ode 0, but. mean|
00000b10  73 1a 20 74 68 61 74 1a  20 74 68 65 1a 20 64 75  |s. that. the. du|
00000b20  6d 70 1a 20 63 61 6e 20  62 65 20 20 0d 75 73 65  |mp. can be  .use|
00000b30  64 20 75 6e 69 76 65 72  73 61 6c 6c 79 2c 20 66  |d universally, f|
00000b40  6f 72 10 70 72 69 6e 74  69 6e 67 20 6f 75 74 20  |or.printing out |
00000b50  74 69 74 6c 65 20 73 63  72 65 65 6e 73 2c 20 65  |title screens, e|
00000b60  74 63 2e 0d 20 20 20 20  20 20 20 20 54 68 65 20  |tc..        The |
00000b70  70 72 6f 67 72 61 6d 20  44 69 61 67 72 61 6d 32  |program Diagram2|
00000b80  20 66 72 6f 6d 20 45 55  47 31 36 20 77 69 6c 6c  | from EUG16 will|
00000b90  20 6e 65 65 64 20 74 77  6f 20 6d 69 6e 6f 72 20  | need two minor |
00000ba0  0d 63 68 61 6e 67 65 73  20 74 6f 20 75 73 65 10  |.changes to use.|
00000bb0  74 68 65 20 6e 65 77 20  64 75 6d 70 3a 0d 0d 20  |the new dump:.. |
00000bc0  20 20 20 20 28 61 29 20  43 68 61 6e 67 65 20 6c  |    (a) Change l|
00000bd0  69 6e 65 20 38 30 30 20  74 6f 3a 20 38 30 30 20  |ine 800 to: 800 |
00000be0  2a 55 43 4f 44 45 20 20  20 20 20 0d 20 20 20 20  |*UCODE     .    |
00000bf0  20 20 20 20 20 20 28 61  73 73 75 6d 69 6e 67 20  |      (assuming |
00000c00  74 68 65 20 63 6f 64 65  20 77 61 73 20 73 61 76  |the code was sav|
00000c10  65 64 20 61 73 20 22 55  43 4f 44 45 22 29 0d 0d  |ed as "UCODE")..|
00000c20  20 20 20 20 20 20 20 28  62 29 20 44 65 6c 65 74  |       (b) Delet|
00000c30  65 20 6c 69 6e 65 20 38  30 34 0d 20 20 20 20 20  |e line 804.     |
00000c40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000c60  20 20 20 4d 61 74 74 68  65 77 20 46 6f 72 64 0d  |   Matthew Ford.|
00000c70  0d                                                |.|
00000c71