Add: brainfuck interpreter; documentation; uptime

This commit is contained in:
xamidev
2024-08-06 15:29:13 +02:00
parent fc17e5eade
commit 98b79d7fcf
10 changed files with 156 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
// Miscellaneous small programs
#include "../libc/stdio.h"
#include "../kernel/system.h"
// Print a rainbow colorful text for testing
@@ -29,3 +30,10 @@ void program_clear()
{
for (int i=0; i<ROWS; i++) scroll(1);
}
// Get uptime in ticks
void program_uptime()
{
printf("%d ticks\n", uptime());
}