Here are a few software routines to help control the LCD screen
and the keypad. These routines are all written in assembler and
so can be incorporated into any assembler programs. They can
also be incorporated into Micro-C by placing them in the LIB11
directory and adding their labels to the EXTINDEX.LIB file.

To use the LCD screen routines you must first equate the two
addresses that the screen uses to the two labels that the code
uses. These are:
		lcd_data	equ	$180b
		lcd_cont	equ	$180a

For the keypad routines the actual addresses are used, however a
memory variable is needed and this should be declared in your data 
area:
		keypress	rmb	1

Keypress is a buffer which is used by the interrupt routine
to store the last key pressed. It is used by two other routines:

kbhit - returns a non-zero if a character is in keypress.

get_char - returns the character in the buffer and then clears it, 
	   this re-enables the kbhit routine again for the next 
	   character.

The keyboard lookup table (keypatch.asm) is provided for use with 
the keypad as supplied with the LCD kit. It should be incorporated 
into your code and the address of it noted in the "keyint" routine. 
As you will see at present the patch is set to address $7c00, and 
is called by the keyboard interupt program (keyint.asm). It
works by getting a number from the keypad, adding it to the base
address of the keypatch table and loading from that address the
character. The characters in the table may be changed to suit
any other keypad, or the keypatch table may be moved to another
address, however if it is moved the code in keyint.asm should be
changed also (change the line "ADDD	$7C00"	to the new base 
address).


Enjoy

Pete