The following article was printed in December 1987 of the magazine „8000 PLUS".
A very simple BASIC program for defining a subset of characters
Handwritten type
Kelvin Stott
 
Now this is really personalising your PCW. Have you ever felt annoyed by the style of the screen lettering, or frustrated that you can't define your own special display characters? This listing takes all the lower case letters on your PCW screen and turns them into beautifully flowing joined-up writing.
Although only 15 lines, the listing is packed with a fair amount of detail. It would be wise to check the program carefully (using the 8000 Plus Basic Checker program if possible) before running as even a small mistake on the data lines from 70 to 150 could have some drastic effects on your character set. And do save the program (as described in the 'How to type in a listing' box) before running it, since a mistake in lines 20-30 could make your PCW lock up. (If this happens, alt you can do is turn off and restart.)
As soon as you run the program you will see the results - BASIC's messages will come up on the screen in handwriting. You will need to run this program every time you start the PCW up, since the character set changes are not permanent and are forgotten when you turn off (and, it follows, turning off and on again is the simplest way to revert to normal characters). The new characters cannot be used for LocoScript.
Unfortunately this beautiful script does not come out on the printer but it does give a whole new look to the green screen. If you're really desperate to get a hard copy 8256/8512 users can of course get a screen dump pressing [EXTRA] and [PTR]. You will be amazed at what a little listing will do.
The upper case characters are unchanged, so when you are writing a program for yourself you can mix ordinary upper case words with pseudo-handwritten lower case comments for effect.

How it all works

With a little ingenuity, you can easily adapt this program to create any characters you like on your screen. If you are writing your own games programs you might set up the 'z' character to be a Space Invader, for example.
⇑ The dot layout for the 'handwritten' version of the character 'a'
The essence of the program is in lines 70 to 150 - these contain the magic numbers which define what pattern of dots the PCW displays on its screen when you tell it to print a particular character from 'a' to 'z'.
Each letter on the screen is made up on a grid of 8 by 8 dots - you can see them it you look really closely. The pattern of 64 dots for each letter is stored in the PCW's memory.
The numbers in the DATA statements from lines 70 to 150 are in fact 26 sets of 8 numbers, each set of 8 numbers defining the dot pattern for a' to 'z' respectively. The first eight (0, 0, 30, 102, 198, 205, 118, 0) make up the handwritten letter 'a' for example.
To understand how the figures are arrived at you have to refer to the little diagram at the bottom left. Each number in tie set of 8 which defines a letter's shape corresponds to a row of 8 dots. The first number is the top row, the last the bottom row. Each column is given a number (1, 2, 4, 8, 16, 32, 64 or 128) as labelled.
Once you have drawn your character on the 8x8 grid, you work out what the code number for each row is by adding up all the column codes in that row. So if you want to put one dot in the top right hand corner you would put in a 1 tor the first row code. For a dot in the top right hand corner (1} and one in the top left hand corner (128) you would use 129. To fill every dot in a row you add all the values together and get 255.
With this knowledge and a bit of experimentation you could modify the program to adapt the character set to suit yourself. In line 40 you see that the DATA values in lines 70 to 150 are being used to redefine the screen versions of ASCII characters 97 to 122 (ie. 'a' to 'z'). By changing this to 71 to 96 you could adapt your own character set for all the capital letters. Or you could leave the text as it is and redefine some lesser used graphics keys such as ½ { and } to be your Space Invaders.
[BASIC listing and assembler listing]

HTML customization by Werner Cirsovius
January 2015
© 8000 PLUS