Fixed bug with capitalisation
This commit is contained in:
parent
c235befa43
commit
010ea7eb1d
@ -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)();
|
||||
}
|
@ -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();
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user