A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eOS/kernel/kernel.c

22 lines
526 B

3 years ago
#include "memory.h"
#include "../drivers/vga.h"
3 years ago
#include "../lib/str.h"
#include "../lib/strf.h"
void main() {
3 years ago
vga_init(); // Initialize the screen first
// i.e. clear the screen et cetera.
3 years ago
char* title = "eOS Version 0.2 2021";
println(title, DEFAULT_COLOR);
char* subtitle = "A x86 operating system, licenced under GPL-2.0";
println(subtitle, DEFAULT_COLOR);
3 years ago
char* strbuf = "String concat: ";
char* str2 = "WORKS! :D";
3 years ago
strbuf = strcat(strbuf, str2);
set_cursor_pos(0, 4);
println(strbuf, DEFAULT_COLOR);
}