22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Wreturn-type"
24 #pragma GCC diagnostic ignored "-Wunused-parameter"
31 void putc(Byte character) {
42 void puts(
const int string) {
43 asm(
"mov bx,[ebp+8]\n"
44 "int 0x20"::
"a"(0x100));
61 "int 0x20\n"::
"d"(num));
73 asm(
"lea bx, [ebp+8]\n"
74 "int 0x20"::
"a"(0x0300));
103 :
"=a"(key),
"=b"(key.available)
108 #pragma GCC diagnostic pop
Key getKeyBuff(void)
Get key from buffer.
void puti(int num)
Put int.
Key getc(void)
Wait for key in buffer, get it and clear buffer.
union Key Key
Key information, got from buffer.
void printf(const int str,...)
C-like printf function.
void puts(const int string)
Put string.
void putc(Byte character)
Put character.
useful macros, definitions, enums etc.
Key information, got from buffer.