21void Kprintf(
const char *fmt, ...);
28void Kgetstr(
char *str,
int length);
char Kgetkey()
Gets the next character from the keyboard buffer (blocking).
void Kgetstr(char *str, int length)
Reads a line of input from the keyboard (blocking).
u32 Inl(u16 port)
Read a 32-bit value from the specified I/O port.
void Kprintf(const char *fmt,...)
Formatted output to the screen.
u8 Inb(u16 port)
Read a byte from the specified I/O port.
u16 Inw(u16 port)
Read a 16-bit word from the specified I/O port.
void Outb(u16 port, u8 value)
Write a byte to the specified I/O port.
void KputcharBackspace()
Handles backspace keypress by moving the cursor back and clearing the character.
void Outw(u16 port, u16 value)
Write a 16-bit word to the specified I/O port.
void Sti()
Enable CPU interrupts (set interrupt flag).
void Kcfp()
Clears the screen by filling the video memory with spaces.
void Kflush()
Flushes the keyboard controller input buffer.
void Outl(u16 port, u32 val)
Write a 32-bit value to the specified I/O port.
unsigned char ScancodeToAscii(unsigned char scancode)
void KprintHex(u32 num)
Prints a 32-bit unsigned integer in hexadecimal format prefixed with "0x".
void Kputchar(char c)
Outputs a single character to the screen at the current cursor position.
void Cli()
Disable CPU interrupts (clear interrupt flag).
unsigned int u32
32-Bit Unsigned Int
unsigned short u16
16-Bit Unsigned Int
unsigned char u8
8-Bit Unsigned Int