Add: better dynamic command management

This commit is contained in:
xamidev
2024-08-09 11:09:15 +02:00
parent 7b6f3ecd96
commit 3524fdc760
7 changed files with 72 additions and 50 deletions

View File

@@ -39,3 +39,15 @@ void program_uptime()
double seconds = ticks/18.2065; // PIC channel 0 freq
printf("%d ticks\t%f seconds\n", ticks, seconds);
}
// Get help
void program_help()
{
printf("help\tpanic\twords\tprimes\trainbow\tclear\nmath\tbf\tuptime\n");
}
void program_panic()
{
asm volatile("int $0x13");
}

View File

@@ -10,5 +10,6 @@ void program_bf();
void program_rainbow();
void program_clear();
void program_uptime();
void program_panic();
void program_help();
#endif