29void Exec(
unsigned char *exec) {
30 Kprintf(
"Interpreting executable before execution");
32 int symtbl_len = exec[1];
34 while (exec[pc] != 0xFF) {
35 unsigned char opcode = exec[pc++];
38 unsigned char sym_id = exec[pc++];
39 if (sym_id >= symtbl_len) {
44 unsigned char op = smt[sym_id];
48 while (exec[pc] != 0x00) {
78 Kprintf(
"Invalid instruction byte\n");
void Kprintf(const char *fmt,...)
Formatted output to the screen.
void Kcfp()
Clears the screen by filling the video memory with spaces.
void Kputchar(char c)
Outputs a single character to the screen at the current cursor position.
void ZZZ(int ms)
Sleeps for 10ms.
void Exec(unsigned char *exec)