Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_25.ADF » P/PCStxt1

P/PCStxt1

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_25.ADF
Filename: P/PCStxt1
Read OK:
File size: 0A1C bytes
Load address: 50206576
Exec address: 78745343
File contents
PRINTER CODE SETTER
~~~~~~~~~~~~~~~~~~~
By Richard Dimond

When I purchased my Rombox and fitted it with Sideways RAM, I thought it
would be useful to set up a ROM image which could be loaded into SW RAM to
enable the printer to be set up simply by using a series of three letter *
commands.

With the help of the Advanced User Guide and some ROM images I had already
got, I have made up this ROM image and have found it very useful.  It is
fairly easy to vary the commands or add others if necessary though I have
included all the types of printing and other commands to make it fairly
comprehensive.   Particularly useful are the column printing commands for
printing listings.  One problem with this is that you cannot change the
column until the printer is cleared so that you need to know how man lines
you can fit into each column and print out each saparatelty.

When I had my Rombox problems, I could not use this and also I realised
that not all members have SW RAM.  I then thought of the possibility of
writing the progaram as a normal M/code program.

I have included the source programs (suffixed src) so that you may alter
them if you wish and will help anyone to do this if necessary.
                                                               
Both give the same range of commands but need to be used in a slightly
different way so I shall describe the operation separately.

ROM Version
~~~~~~~~~~~
After loading this into SW RAM in the usual way, the commands available
can be listed by using the command *HELP PCODES.  This is a little larger
the the screen and so will need to be scrolled by pressing SHIFT.

The commands are simply entered the usual way and any numder can entered
to set up the printer as you wish.  If the ROM is set up it is also
possible to use the codes in a BASIC program.

M/Code Version
~~~~~~~~~~~~~~
This is written to &5000 so that it is out of the way of the most used
part of the memory.

On running the program by giving the command *PCS, the codes will be
displayed.  Then after pressing SPACE, the note on column printing is
shown and the cue given for entering the codes.

These are the same as for the ROM version but I have arranged that the
commands will be accepted with or without the '*'.  After entering the
codes it is necessary to break out of the program.  This can be done
simply by pressing RETURN without entering a code.  You can also press
ESCAPE or BREAK.  If you enter a wrong code, the program will stop with
the message 'Bad command'.


00000000  0d 50 52 49 4e 54 45 52  20 43 4f 44 45 20 53 45  |.PRINTER CODE SE|
00000010  54 54 45 52 0d 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |TTER.~~~~~~~~~~~|
00000020  7e 7e 7e 7e 7e 7e 7e 7e  0d 42 79 20 52 69 63 68  |~~~~~~~~.By Rich|
00000030  61 72 64 20 44 69 6d 6f  6e 64 0d 0d 57 68 65 6e  |ard Dimond..When|
00000040  1a 20 49 1a 20 70 75 72  63 68 61 73 65 64 20 6d  |. I. purchased m|
00000050  79 20 52 6f 6d 62 6f 78  20 61 6e 64 20 66 69 74  |y Rombox and fit|
00000060  74 65 64 20 69 74 20 77  69 74 68 20 53 69 64 65  |ted it with Side|
00000070  77 61 79 73 20 52 41 4d  2c 20 49 20 74 68 6f 75  |ways RAM, I thou|
00000080  67 68 74 20 69 74 0d 77  6f 75 6c 64 20 62 65 20  |ght it.would be |
00000090  75 73 65 66 75 6c 20 74  6f 20 73 65 74 20 75 70  |useful to set up|
000000a0  20 61 20 52 4f 4d 20 69  6d 61 67 65 20 77 68 69  | a ROM image whi|
000000b0  63 68 20 63 6f 75 6c 64  20 62 65 20 6c 6f 61 64  |ch could be load|
000000c0  65 64 20 69 6e 74 6f 20  53 57 20 52 41 4d 20 74  |ed into SW RAM t|
000000d0  6f 0d 65 6e 61 62 6c 65  20 74 68 65 20 70 72 69  |o.enable the pri|
000000e0  6e 74 65 72 20 74 6f 20  62 65 20 73 65 74 20 75  |nter to be set u|
000000f0  70 20 73 69 6d 70 6c 79  20 62 79 20 75 73 69 6e  |p simply by usin|
00000100  67 20 61 20 73 65 72 69  65 73 20 6f 66 20 74 68  |g a series of th|
00000110  72 65 65 20 6c 65 74 74  65 72 20 2a 0d 63 6f 6d  |ree letter *.com|
00000120  6d 61 6e 64 73 2e 0d 0d  57 69 74 68 20 74 68 65  |mands...With the|
00000130  20 68 65 6c 70 20 6f 66  20 74 68 65 20 41 64 76  | help of the Adv|
00000140  61 6e 63 65 64 20 55 73  65 72 20 47 75 69 64 65  |anced User Guide|
00000150  20 61 6e 64 20 73 6f 6d  65 20 52 4f 4d 20 69 6d  | and some ROM im|
00000160  61 67 65 73 20 49 20 68  61 64 20 61 6c 72 65 61  |ages I had alrea|
00000170  64 79 0d 67 6f 74 2c 20  49 20 68 61 76 65 20 6d  |dy.got, I have m|
00000180  61 64 65 20 75 70 20 74  68 69 73 20 52 4f 4d 20  |ade up this ROM |
00000190  69 6d 61 67 65 20 61 6e  64 1a 20 68 61 76 65 1a  |image and. have.|
000001a0  20 66 6f 75 6e 64 20 69  74 20 76 65 72 79 20 75  | found it very u|
000001b0  73 65 66 75 6c 2e 20 20  49 74 20 69 73 0d 66 61  |seful.  It is.fa|
000001c0  69 72 6c 79 20 65 61 73  79 20 74 6f 20 76 61 72  |irly easy to var|
000001d0  79 20 74 68 65 20 63 6f  6d 6d 61 6e 64 73 20 6f  |y the commands o|
000001e0  72 20 61 64 64 20 6f 74  68 65 72 73 20 69 66 20  |r add others if |
000001f0  6e 65 63 65 73 73 61 72  79 1a 20 74 68 6f 75 67  |necessary. thoug|
00000200  68 20 49 20 68 61 76 65  0d 69 6e 63 6c 75 64 65  |h I have.include|
00000210  64 1a 20 61 6c 6c 1a 20  74 68 65 1a 20 74 79 70  |d. all. the. typ|
00000220  65 73 20 6f 66 20 70 72  69 6e 74 69 6e 67 20 61  |es of printing a|
00000230  6e 64 20 6f 74 68 65 72  20 63 6f 6d 6d 61 6e 64  |nd other command|
00000240  73 20 74 6f 20 6d 61 6b  65 20 69 74 20 66 61 69  |s to make it fai|
00000250  72 6c 79 0d 63 6f 6d 70  72 65 68 65 6e 73 69 76  |rly.comprehensiv|
00000260  65 2e 20 20 20 50 61 72  74 69 63 75 6c 61 72 6c  |e.   Particularl|
00000270  79 20 75 73 65 66 75 6c  20 61 72 65 20 74 68 65  |y useful are the|
00000280  1a 20 63 6f 6c 75 6d 6e  20 70 72 69 6e 74 69 6e  |. column printin|
00000290  67 20 63 6f 6d 6d 61 6e  64 73 20 66 6f 72 0d 70  |g commands for.p|
000002a0  72 69 6e 74 69 6e 67 20  6c 69 73 74 69 6e 67 73  |rinting listings|
000002b0  2e 20 20 4f 6e 65 20 70  72 6f 62 6c 65 6d 20 77  |.  One problem w|
000002c0  69 74 68 1a 20 74 68 69  73 1a 20 69 73 1a 20 74  |ith. this. is. t|
000002d0  68 61 74 20 79 6f 75 20  63 61 6e 6e 6f 74 20 63  |hat you cannot c|
000002e0  68 61 6e 67 65 20 74 68  65 0d 63 6f 6c 75 6d 6e  |hange the.column|
000002f0  20 75 6e 74 69 6c 20 74  68 65 20 70 72 69 6e 74  | until the print|
00000300  65 72 20 69 73 20 63 6c  65 61 72 65 64 20 73 6f  |er is cleared so|
00000310  20 74 68 61 74 20 79 6f  75 20 6e 65 65 64 20 74  | that you need t|
00000320  6f 20 6b 6e 6f 77 20 68  6f 77 20 6d 61 6e 20 6c  |o know how man l|
00000330  69 6e 65 73 0d 79 6f 75  20 63 61 6e 20 66 69 74  |ines.you can fit|
00000340  20 69 6e 74 6f 20 65 61  63 68 20 63 6f 6c 75 6d  | into each colum|
00000350  6e 20 61 6e 64 20 70 72  69 6e 74 20 6f 75 74 20  |n and print out |
00000360  65 61 63 68 20 73 61 70  61 72 61 74 65 6c 74 79  |each saparatelty|
00000370  2e 0d 0d 57 68 65 6e 20  49 20 68 61 64 20 6d 79  |...When I had my|
00000380  20 52 6f 6d 62 6f 78 20  70 72 6f 62 6c 65 6d 73  | Rombox problems|
00000390  2c 20 49 20 63 6f 75 6c  64 1a 20 6e 6f 74 1a 20  |, I could. not. |
000003a0  75 73 65 1a 20 74 68 69  73 20 61 6e 64 20 61 6c  |use. this and al|
000003b0  73 6f 20 49 20 72 65 61  6c 69 73 65 64 0d 74 68  |so I realised.th|
000003c0  61 74 20 6e 6f 74 20 61  6c 6c 20 6d 65 6d 62 65  |at not all membe|
000003d0  72 73 20 68 61 76 65 1a  20 53 57 1a 20 52 41 4d  |rs have. SW. RAM|
000003e0  2e 1a 20 20 49 20 74 68  65 6e 20 74 68 6f 75 67  |..  I then thoug|
000003f0  68 74 20 6f 66 20 74 68  65 20 70 6f 73 73 69 62  |ht of the possib|
00000400  69 6c 69 74 79 20 6f 66  0d 77 72 69 74 69 6e 67  |ility of.writing|
00000410  20 74 68 65 20 70 72 6f  67 61 72 61 6d 20 61 73  | the progaram as|
00000420  20 61 20 6e 6f 72 6d 61  6c 20 4d 2f 63 6f 64 65  | a normal M/code|
00000430  20 70 72 6f 67 72 61 6d  2e 0d 0d 49 20 68 61 76  | program...I hav|
00000440  65 20 69 6e 63 6c 75 64  65 64 20 74 68 65 20 73  |e included the s|
00000450  6f 75 72 63 65 1a 20 70  72 6f 67 72 61 6d 73 1a  |ource. programs.|
00000460  20 28 73 75 66 66 69 78  65 64 20 73 72 63 29 20  | (suffixed src) |
00000470  73 6f 20 74 68 61 74 20  79 6f 75 20 6d 61 79 20  |so that you may |
00000480  61 6c 74 65 72 0d 74 68  65 6d 20 69 66 20 79 6f  |alter.them if yo|
00000490  75 20 77 69 73 68 20 61  6e 64 20 77 69 6c 6c 20  |u wish and will |
000004a0  68 65 6c 70 20 61 6e 79  6f 6e 65 20 74 6f 20 64  |help anyone to d|
000004b0  6f 20 74 68 69 73 20 69  66 20 6e 65 63 65 73 73  |o this if necess|
000004c0  61 72 79 2e 0d 20 20 20  20 20 20 20 20 20 20 20  |ary..           |
000004d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000500  20 20 20 20 0d 42 6f 74  68 20 67 69 76 65 20 74  |    .Both give t|
00000510  68 65 20 73 61 6d 65 20  72 61 6e 67 65 1a 20 6f  |he same range. o|
00000520  66 1a 20 63 6f 6d 6d 61  6e 64 73 1a 20 62 75 74  |f. commands. but|
00000530  1a 20 6e 65 65 64 20 74  6f 20 62 65 20 75 73 65  |. need to be use|
00000540  64 20 69 6e 20 61 20 73  6c 69 67 68 74 6c 79 0d  |d in a slightly.|
00000550  64 69 66 66 65 72 65 6e  74 20 77 61 79 20 73 6f  |different way so|
00000560  20 49 20 73 68 61 6c 6c  20 64 65 73 63 72 69 62  | I shall describ|
00000570  65 20 74 68 65 20 6f 70  65 72 61 74 69 6f 6e 20  |e the operation |
00000580  73 65 70 61 72 61 74 65  6c 79 2e 0d 0d 52 4f 4d  |separately...ROM|
00000590  20 56 65 72 73 69 6f 6e  0d 7e 7e 7e 7e 7e 7e 7e  | Version.~~~~~~~|
000005a0  7e 7e 7e 7e 0d 41 66 74  65 72 20 6c 6f 61 64 69  |~~~~.After loadi|
000005b0  6e 67 20 74 68 69 73 20  69 6e 74 6f 20 53 57 1a  |ng this into SW.|
000005c0  20 52 41 4d 1a 20 69 6e  1a 20 74 68 65 20 75 73  | RAM. in. the us|
000005d0  75 61 6c 20 77 61 79 2c  20 74 68 65 20 63 6f 6d  |ual way, the com|
000005e0  6d 61 6e 64 73 20 61 76  61 69 6c 61 62 6c 65 0d  |mands available.|
000005f0  63 61 6e 20 62 65 20 6c  69 73 74 65 64 20 62 79  |can be listed by|
00000600  20 75 73 69 6e 67 20 74  68 65 20 63 6f 6d 6d 61  | using the comma|
00000610  6e 64 20 2a 48 45 4c 50  1a 20 50 43 4f 44 45 53  |nd *HELP. PCODES|
00000620  2e 20 20 54 68 69 73 20  69 73 20 61 20 6c 69 74  |.  This is a lit|
00000630  74 6c 65 20 6c 61 72 67  65 72 0d 74 68 65 20 74  |tle larger.the t|
00000640  68 65 20 73 63 72 65 65  6e 20 61 6e 64 20 73 6f  |he screen and so|
00000650  20 77 69 6c 6c 20 6e 65  65 64 20 74 6f 20 62 65  | will need to be|
00000660  20 73 63 72 6f 6c 6c 65  64 20 62 79 20 70 72 65  | scrolled by pre|
00000670  73 73 69 6e 67 20 53 48  49 46 54 2e 0d 0d 54 68  |ssing SHIFT...Th|
00000680  65 20 63 6f 6d 6d 61 6e  64 73 20 61 72 65 20 73  |e commands are s|
00000690  69 6d 70 6c 79 20 65 6e  74 65 72 65 64 20 74 68  |imply entered th|
000006a0  65 20 75 73 75 61 6c 20  77 61 79 20 61 6e 64 1a  |e usual way and.|
000006b0  20 61 6e 79 1a 20 6e 75  6d 64 65 72 20 63 61 6e  | any. numder can|
000006c0  20 65 6e 74 65 72 65 64  0d 74 6f 1a 20 73 65 74  | entered.to. set|
000006d0  20 75 70 20 74 68 65 20  70 72 69 6e 74 65 72 20  | up the printer |
000006e0  61 73 20 79 6f 75 20 77  69 73 68 2e 20 20 49 66  |as you wish.  If|
000006f0  20 74 68 65 20 52 4f 4d  1a 20 69 73 1a 20 73 65  | the ROM. is. se|
00000700  74 1a 20 75 70 1a 20 69  74 1a 20 69 73 1a 20 61  |t. up. it. is. a|
00000710  6c 73 6f 0d 70 6f 73 73  69 62 6c 65 20 74 6f 20  |lso.possible to |
00000720  75 73 65 20 74 68 65 20  63 6f 64 65 73 20 69 6e  |use the codes in|
00000730  20 61 20 42 41 53 49 43  20 70 72 6f 67 72 61 6d  | a BASIC program|
00000740  2e 0d 0d 4d 2f 43 6f 64  65 20 56 65 72 73 69 6f  |...M/Code Versio|
00000750  6e 0d 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |n.~~~~~~~~~~~~~~|
00000760  0d 54 68 69 73 20 69 73  1a 20 77 72 69 74 74 65  |.This is. writte|
00000770  6e 1a 20 74 6f 1a 20 26  35 30 30 30 1a 20 73 6f  |n. to. &5000. so|
00000780  20 74 68 61 74 20 69 74  20 69 73 20 6f 75 74 20  | that it is out |
00000790  6f 66 20 74 68 65 20 77  61 79 20 6f 66 20 74 68  |of the way of th|
000007a0  65 20 6d 6f 73 74 20 75  73 65 64 0d 70 61 72 74  |e most used.part|
000007b0  20 6f 66 20 74 68 65 20  6d 65 6d 6f 72 79 2e 0d  | of the memory..|
000007c0  0d 4f 6e 20 72 75 6e 6e  69 6e 67 20 74 68 65 20  |.On running the |
000007d0  70 72 6f 67 72 61 6d 20  62 79 20 67 69 76 69 6e  |program by givin|
000007e0  67 1a 20 74 68 65 1a 20  63 6f 6d 6d 61 6e 64 1a  |g. the. command.|
000007f0  20 2a 50 43 53 2c 1a 20  74 68 65 1a 20 63 6f 64  | *PCS,. the. cod|
00000800  65 73 1a 20 77 69 6c 6c  20 62 65 0d 64 69 73 70  |es. will be.disp|
00000810  6c 61 79 65 64 2e 1a 20  20 54 68 65 6e 1a 20 61  |layed..  Then. a|
00000820  66 74 65 72 1a 20 70 72  65 73 73 69 6e 67 1a 20  |fter. pressing. |
00000830  53 50 41 43 45 2c 1a 20  74 68 65 20 6e 6f 74 65  |SPACE,. the note|
00000840  20 6f 6e 20 63 6f 6c 75  6d 6e 20 70 72 69 6e 74  | on column print|
00000850  69 6e 67 20 69 73 0d 73  68 6f 77 6e 20 61 6e 64  |ing is.shown and|
00000860  20 74 68 65 20 63 75 65  20 67 69 76 65 6e 20 66  | the cue given f|
00000870  6f 72 20 65 6e 74 65 72  69 6e 67 20 74 68 65 20  |or entering the |
00000880  63 6f 64 65 73 2e 0d 0d  54 68 65 73 65 20 61 72  |codes...These ar|
00000890  65 20 74 68 65 20 73 61  6d 65 20 61 73 1a 20 66  |e the same as. f|
000008a0  6f 72 1a 20 74 68 65 1a  20 52 4f 4d 1a 20 76 65  |or. the. ROM. ve|
000008b0  72 73 69 6f 6e 20 62 75  74 20 49 20 68 61 76 65  |rsion but I have|
000008c0  20 61 72 72 61 6e 67 65  64 20 74 68 61 74 20 74  | arranged that t|
000008d0  68 65 0d 63 6f 6d 6d 61  6e 64 73 1a 20 77 69 6c  |he.commands. wil|
000008e0  6c 20 62 65 20 61 63 63  65 70 74 65 64 20 77 69  |l be accepted wi|
000008f0  74 68 20 6f 72 20 77 69  74 68 6f 75 74 20 74 68  |th or without th|
00000900  65 20 27 2a 27 2e 1a 20  20 41 66 74 65 72 1a 20  |e '*'..  After. |
00000910  65 6e 74 65 72 69 6e 67  1a 20 74 68 65 0d 63 6f  |entering. the.co|
00000920  64 65 73 20 69 74 20 69  73 20 6e 65 63 65 73 73  |des it is necess|
00000930  61 72 79 20 74 6f 1a 20  62 72 65 61 6b 1a 20 6f  |ary to. break. o|
00000940  75 74 1a 20 6f 66 1a 20  74 68 65 1a 20 70 72 6f  |ut. of. the. pro|
00000950  67 72 61 6d 2e 1a 20 20  54 68 69 73 20 63 61 6e  |gram..  This can|
00000960  20 62 65 20 64 6f 6e 65  0d 73 69 6d 70 6c 79 1a  | be done.simply.|
00000970  20 62 79 1a 20 70 72 65  73 73 69 6e 67 1a 20 52  | by. pressing. R|
00000980  45 54 55 52 4e 1a 20 77  69 74 68 6f 75 74 20 65  |ETURN. without e|
00000990  6e 74 65 72 69 6e 67 20  61 20 63 6f 64 65 2e 20  |ntering a code. |
000009a0  20 59 6f 75 20 63 61 6e  20 61 6c 73 6f 20 70 72  | You can also pr|
000009b0  65 73 73 0d 45 53 43 41  50 45 20 6f 72 20 42 52  |ess.ESCAPE or BR|
000009c0  45 41 4b 2e 20 20 49 66  20 79 6f 75 1a 20 65 6e  |EAK.  If you. en|
000009d0  74 65 72 1a 20 61 1a 20  77 72 6f 6e 67 20 63 6f  |ter. a. wrong co|
000009e0  64 65 2c 20 74 68 65 20  70 72 6f 67 72 61 6d 20  |de, the program |
000009f0  77 69 6c 6c 20 73 74 6f  70 20 77 69 74 68 0d 74  |will stop with.t|
00000a00  68 65 20 6d 65 73 73 61  67 65 20 27 42 61 64 20  |he message 'Bad |
00000a10  63 6f 6d 6d 61 6e 64 27  2e 0d 0d 0d              |command'....|
00000a1c
P/PCStxt1.m0
P/PCStxt1.m1
P/PCStxt1.m2
P/PCStxt1.m4
P/PCStxt1.m5