inital commit

This commit is contained in:
plane000
2018-10-07 15:16:25 +01:00
parent 9d99a5ff25
commit ae052c66f1
7 changed files with 178 additions and 0 deletions

24
kernel.c Normal file
View File

@@ -0,0 +1,24 @@
void kmain(void) {
const char* str = "Your mother gay lol";
char* videoMemoryPtr = (char*)0xb8000; // Video memory start
unsigned int i = 0;
unsigned int j = 0;
while (j < 80 * 25 * 2) {
videoMemoryPtr[j] = ' ';
videoMemoryPtr[j+1] = 0x07;
j += 2;
}
j = 0;
while(str[j] != '\0') {
videoMemoryPtr[i] = str[j];
videoMemoryPtr[i+1] = 0x07;
j++;
i += 2;
}
return;
}