15 typedef enum {TextMode = 2, TextColorMode = 16, ColorMode = 19}
Mode;
47 void setColorPalette(Byte color) {
49 ::
"a"(0x0b00),
"b"(color));
62 :
"a"(0x0300),
"b"(0x0));
73 ::
"a"(0x0200),
"b"(0x0),
"d"(cursor));
102 void cputc(
char c, Color color, Byte times) {
103 asm(
"int 0x10"::
"a"(0x0900|c),
"b"(0x0000|color),
"c"(times));
106 ::
"a" (0x0300),
"b" (0x0));
109 ::
"a"(0x0200|times));
119 char* ptr = (
char *)str;
121 asm(
"int 0x10"::
"a"(0x0900|*ptr),
"b"(0x0000|color),
"c"(1));
127 ::
"a" (0x0300),
"b" (0x0));
union Attributes Attributes
Attributes of character on screen.
void cputs(int str, Color color)
Color put string.
struct Cursor Cursor
Position of cursor.
Mode
Video modes, can be changed with void setVideoMode(Mode mode);.
void cputc(char c, Color color, Byte times)
Color put character.
void setCursorPosition(Cursor cursor)
Set position of cursor.
void setVideoMode(Mode mode)
Set the video mode of screen.
Cursor getCursorPosition(void)
Get position of Cursor.
void cls(void)
Clear screen.
useful macros, definitions, enums etc.
Attributes of character on screen.