blob: 2862d0eeca66fa6f04228779522b133c6b6c6e64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#define MÜLL_IO_H
/*
* Minimal API for kernel I/O basics
*/
// includes
#include <stdint.h>
volatile uint16_t* VGA = (volatile uint16_t*)0xB8000;
uint16_t cursor = 0;
void RealPrint(const char* str) {
while(*str) {
VGA[cursor++] = (uint8_t)(*str) | 0x0700; // white on black
str++;
}
}
|