#ifndef CONSOLE_H #define CONSOLE_H #include //needed for uint16_t #define SCR_VIDEOMEM 0xb8000 #define SCR_WIDTH 80 #define SCR_HEIGHT 23 #define SCR_CTRL 0x3D4 #define SCR_DATA 0x3D5 #define SCR_BLACK 0x0 #define SCR_BLUE 0x1 #define SCR_GREEN 0x2 #define SCR_CYAN 0x3 #define SCR_RED 0x4 // TODO: more colors here... # define SCR_WHITE 0xf //autoscroll void scr_clear(); void scr_nextline(); void scr_put_string(char *str); void scr_put_hex(uint16_t val); //void scr_put_int(uint16_t int); #endif