Make not working

This commit is contained in:
plane000
2018-10-07 17:43:49 +01:00
parent ae052c66f1
commit f6f3559c08
5 changed files with 83 additions and 31 deletions

24
kernel.cpp Normal file
View File

@@ -0,0 +1,24 @@
int kernel_main(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 1;
}