summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
blob: a113cbc45bde40802acba3b63f05c7d7ab8e3353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
__asm__(".code16gcc\n");

#include "../output/vga_character.h"
#include "../boot/mod_mem_map.h"

char foo[] = "hello how are you";

void _start() {
  vga_graphics_clear();
  vga_graphics_write_with_attr('a', 1);
  vga_graphics_write_with_attr('/', 2);
  vga_graphics_write_with_attr('b', 3);
  vga_graphics_write_str(foo);
  vga_graphics_write(':');
  vga_graphics_write(' ');
  vga_graphics_byte_hex(0x40);
  populate_memory_map();

  while(1) { }
}