mirror of https://github.com/E-Almqvist/eOS
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.
24 lines
568 B
24 lines
568 B
#include "memory.h"
|
|
#include "../drivers/vga.h"
|
|
#include "../lib/str.h"
|
|
#include "../lib/strf.h"
|
|
|
|
void main() {
|
|
vga_init(); // Initialize the screen first
|
|
// i.e. clear the screen et cetera.
|
|
|
|
char* title = "eOS Version 0.1 2021";
|
|
set_cursor_pos(0, 2);
|
|
printalign(title, 0xf0, MIDDLE);
|
|
|
|
char* subtitle = "A x86 operating system, licenced under GPL-2.0";
|
|
set_cursor_pos(0, 3);
|
|
printalign(subtitle, 0xf8, MIDDLE);
|
|
|
|
|
|
char* strbuf = "String concat: ";
|
|
char* str2 = "WORKS! :D";
|
|
strbuf = strcat(strbuf, str2);
|
|
set_cursor_pos(0, 0);
|
|
println(strbuf, 0xf0);
|
|
}
|
|
|