Fixed bug with capitalisation
This commit is contained in:
parent
c235befa43
commit
010ea7eb1d
@ -9,9 +9,7 @@ void main() {
|
|||||||
uint8_t* kernel_location = 0x80000;
|
uint8_t* kernel_location = 0x80000;
|
||||||
load_file("KERNEL BIN", kernel_location);
|
load_file("KERNEL BIN", kernel_location);
|
||||||
|
|
||||||
printf("Stage2 success!");
|
printf("Stage2 success!\n");
|
||||||
|
|
||||||
//while (1);
|
|
||||||
|
|
||||||
((void(*)(void))kernel_location)();
|
((void(*)(void))kernel_location)();
|
||||||
}
|
}
|
@ -10,14 +10,13 @@ int main() {
|
|||||||
init_idt();
|
init_idt();
|
||||||
init_term();
|
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");
|
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();
|
init_keyboard();
|
||||||
|
|
||||||
enable_idt();
|
enable_idt();
|
||||||
printf("A\n");
|
|
||||||
init_atapio();
|
init_atapio();
|
||||||
|
|
||||||
uint8_t sector[512];
|
uint8_t sector[512];
|
||||||
@ -52,6 +51,8 @@ int main() {
|
|||||||
" : Clears the screen\n"
|
" : Clears the screen\n"
|
||||||
" - echo\n"
|
" - echo\n"
|
||||||
" : Repeats the text written afterwards\n"
|
" : Repeats the text written afterwards\n"
|
||||||
|
" - type\n"
|
||||||
|
" : Prints the contents of a file\n"
|
||||||
);
|
);
|
||||||
} else if (strcmp(buffer, "clear", 5)) {
|
} else if (strcmp(buffer, "clear", 5)) {
|
||||||
clear_screen();
|
clear_screen();
|
||||||
|
@ -61,8 +61,8 @@ void decode_filename(char* nice_name, char* filenamebuffer) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nice_name[i] >= 0x65 && nice_name[i] <= 0x65+26)
|
if (nice_name[i] >= 0x61 && nice_name[i] <= 0x7f)
|
||||||
filenamebuffer[fbIndex++] = nice_name[i] & (0xff - 32);
|
filenamebuffer[fbIndex++] = nice_name[i] - 32;
|
||||||
else
|
else
|
||||||
filenamebuffer[fbIndex++] = nice_name[i];
|
filenamebuffer[fbIndex++] = nice_name[i];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user