Quote Originally Posted by timmers View Post
Could it not be as simple as:-

COUNTER VAR WORD
COUNTER_H VAR COUNTER.BYTE1 'high byte
COUNTER_L VAR COUNTER.BYTE0 'low byte

LCDOUT $FE,128,DEC4 COUNTER 'top row, position 1.

Tim.
I don't think so, because although the LCDOUT is very simple and elegant, the maximum number which can be stored in either Counter_H or Counter_L is 255. Therefore the largest value which the word sized variable Counter can be is 255255.

There needs to be a conversion first. The high byte needs to be multiplied by 256 (not 255 as I originally pointed out) and then added to the low byte before it gets stored in the word 'Counter'