mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2024-11-21 13:56:53 -08:00
14 lines
287 B
C
14 lines
287 B
C
#include <stdint.h>
|
|
|
|
void kmain(void)
|
|
{
|
|
const uint16_t color = 0x0F00;
|
|
const char *hello = "Hello C world!";
|
|
volatile uint16_t *vga = (volatile uint16_t *)0xb8000;
|
|
|
|
for (int i = 0; i < 16; ++i)
|
|
{
|
|
vga[i + 80] = color | (uint16_t)hello[i];
|
|
}
|
|
}
|