#include <io.h>
#include <system.h>
#include <stdio.h>
#include <alt_types.h>

//Macros to read from the PS/2 keyboard
#define KEYBOARD_READY()            IORD_8DIRECT(KEYBOARD_BASE, 0)   //Poll status of keyboard
#define KEYBOARD_READ()             IORD_8DIRECT(KEYBOARD_BASE, 4)   //Get one byte from the keyboard

// State Machine for Getting Relevant Make Code 
extern unsigned char checkCode(unsigned char makecode);

// Function for writing a character to the key board
extern void writeToLCD(unsigned char letter, int position);

// Remove character from LCD
extern void backSpace(int position);

// Main Function for running storing and writing the keys to the LCD
extern unsigned short *getKey();