summaryrefslogtreecommitdiff
path: root/stage3/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/main.c')
-rw-r--r--stage3/main.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/stage3/main.c b/stage3/main.c
index ab0b3a5..3a96992 100644
--- a/stage3/main.c
+++ b/stage3/main.c
@@ -1,15 +1,17 @@
-#include "paging.h"
#include "def.h"
+#include "paging.h"
#include "gfx.h"
#include "halt.h"
#include "heap.h"
#include "font.h"
+#include "letters.h"
void clear_screen(); // framebuffer.asm
void kmain()
{
clear_screen();
+ letters_init();
heap_init();
#define MMAP for (MemRegion *mreg = (void *) 0x500; mreg->start != nil; mreg++)
@@ -24,9 +26,14 @@ void kmain()
MMAP heap_add_region(mreg);
- gfx_set_area(0, 0, gfx_info->width, gfx_info->height, 0xFF87CEEB);
+ gfx_set_area(0, 0, gfx_info->width, gfx_info->height, 0xFF000000);
+
+ char str[128];
+ str[127] = '\0';
+ for (u8 i = 1; i < 128; i++)
+ str[i-1] = i;
- print("abcdefghijklmnopqrstuvwxyz");
+ println(str);
halt();
}