caos-with-snake/syscall.h

21 lines
343 B
C
Raw Normal View History

2022-12-14 16:50:10 +03:00
#pragma once
2026-04-06 05:20:00 +03:00
#include <stdint.h>
2022-12-14 16:50:10 +03:00
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,
SYS_set_beep = 10,
2022-12-14 16:50:10 +03:00
};
2026-04-06 05:20:00 +03:00
int syscall(int call, uintptr_t arg);