20 lines
287 B
C
20 lines
287 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
enum {
|
|
T_SYSCALL = 0x84,
|
|
SYS_exit = 0,
|
|
SYS_greet = 1,
|
|
SYS_putc = 2,
|
|
SYS_puts = 3,
|
|
SYS_switch_to_text = 4,
|
|
SYS_switch_to_graphics = 5,
|
|
SYS_swap_frame = 6,
|
|
SYS_time_ms = 7,
|
|
SYS_halt = 8,
|
|
SYS_getc = 9,
|
|
};
|
|
|
|
int syscall(int call, uintptr_t arg);
|