blob: a8b2b8657fb4ed2dc149e393dd10c3ecaee8c08e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef CONSOLE_H
#define CONSOLE_H
#include <stdint.h> //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
|