omos-tcnj2024/sys/sysinit.c

61 lines
2.6 KiB
C
Raw Normal View History

2024-02-18 03:53:36 +01:00
#include <types.h>
2024-02-18 16:30:09 +01:00
#include <extern.h>
2024-02-18 03:53:36 +01:00
2024-02-17 23:19:28 +01:00
void
2024-02-18 01:16:13 +01:00
sysinit(void)
{
char *howdy = "Om Smart.";
char *howday = "Om Smarter.";
2024-02-18 13:38:08 +01:00
2024-02-18 01:16:13 +01:00
vga_clearscreen();
/*
for (s16 i = 0; i < 100; i++) {
vga_write(howdy, strlen(howdy), 0x1f);
vga_write(howday, strlen(howday), 0x0f);
2024-02-18 17:03:37 +01:00
}
vga_write("sid", 3, 0x07);
vga_write("did", 3, 0x07);
vga_write("fid", 3, 0x07);
*/
vga_write(
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"bob", 2003, 0x0F);
2024-02-18 15:02:57 +01:00
vga_write("indian", 6, 0x07);
vga_write("indian", 6, 0x07);
2024-02-18 17:03:37 +01:00
printf("%s%x", "Omh", 0x2a);
2024-02-18 16:30:09 +01:00
vga_write("Starting omOS...", 16, 0x0F);
2024-02-18 17:03:57 +01:00
memory_init();
2024-02-18 16:30:09 +01:00
s8 *start = (s8 *) 0xb8fa0;
start[0] = 'h';
2024-02-17 23:19:28 +01:00
}