Making: math interpreter. Need to fix printf %f

This commit is contained in:
xamidev
2024-08-06 13:43:01 +02:00
parent f05347f73b
commit fc17e5eade
8 changed files with 393 additions and 53 deletions

View File

@@ -39,7 +39,6 @@ int kmain(int retvalue)
timer_install();
keyboard_install();
shell_install();
return retvalue;

View File

@@ -21,7 +21,7 @@ void shell_install()
}
else if (strcmp(input_buffer, "help") == 0)
{
printf("help\tpanic\twords\tprimes\trainbow\tclear\n");
printf("help\tpanic\twords\tprimes\trainbow\tclear\nmath\n");
}
else if (strcmp(input_buffer, "panic") == 0)
{
@@ -43,6 +43,10 @@ void shell_install()
{
program_clear();
}
else if (strcmp(input_buffer, "math") == 0)
{
program_math();
}
else {
printf("Unknown command %s\n", input_buffer);
}