// LCD addresses on 812 board


#define	LCDCR	_P(0x3FC)  // Address of LCD Control/Status Reg

#define	LCDDR	_P(0x3FD)  // Address of LCD Data Register


// LCD addresses on port driven LCD on NMIY-0812

#define R_W 0x80  // read write choice

#define LDR 0x20  // data register of LCD module

#define ENABLE 0x08

#define LCR 0     // command register of LCD module )


#define CURSOR_BLOCK 0x0D

#define CURSOR_UNDERBAR 0x0E

#define CURSOR_OFF 0x0C


#define CLEAR_LCD 0x01


Cell lcd_read(Byte );

void lcd_write(Byte , Byte );

void lcd_data(Cell );

void lcd_cmd(Cell );

Flag lcd_ready(void);

void feed_lcd(void);

void run_lcd(void);

void lcd_type(char [], Cell );

void lcd_stype(char *);

void lcd_set(Cell , Cell );

void lcd_clear(void);

