Add: brainfuck interpreter; documentation; uptime
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user