Fixed bug with capitalisation

This commit is contained in:
Xnoe 2021-09-25 17:51:18 +01:00
parent c235befa43
commit 010ea7eb1d
Signed by: xnoe
GPG Key ID: 45AC398F44F0DAFE
3 changed files with 6 additions and 7 deletions

View File

@ -9,9 +9,7 @@ void main() {
uint8_t* kernel_location = 0x80000;
load_file("KERNEL BIN", kernel_location);
printf("Stage2 success!");
//while (1);
printf("Stage2 success!\n");
((void(*)(void))kernel_location)();
}

View File

@ -10,14 +10,13 @@ int main() {
init_idt();
init_term();
printf("KERNEL32 OK!\n");
printf("KERNEL OK!\n");
printf("Hello, World!\n\nWe are running XnoeOS Code in C now, Protected Mode has been achieved and everything is working super nicely!\n\nHow wonderful!\n\nNow I just need to hope my print function works properly too~~\n");
init_keyboard();
enable_idt();
printf("A\n");
init_atapio();
uint8_t sector[512];
@ -52,6 +51,8 @@ int main() {
" : Clears the screen\n"
" - echo\n"
" : Repeats the text written afterwards\n"
" - type\n"
" : Prints the contents of a file\n"
);
} else if (strcmp(buffer, "clear", 5)) {
clear_screen();

View File

@ -61,8 +61,8 @@ void decode_filename(char* nice_name, char* filenamebuffer) {
continue;
}
if (nice_name[i] >= 0x65 && nice_name[i] <= 0x65+26)
filenamebuffer[fbIndex++] = nice_name[i] & (0xff - 32);
if (nice_name[i] >= 0x61 && nice_name[i] <= 0x7f)
filenamebuffer[fbIndex++] = nice_name[i] - 32;
else
filenamebuffer[fbIndex++] = nice_name[i];
}