caos-with-snake/syscall.h

14 lines
164 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,
2023-01-31 16:11:20 +04:00
SYS_putc = 2,
SYS_puts = 3,
2022-12-14 16:50:10 +03:00
};
2026-04-06 05:20:00 +03:00
int syscall(int call, uintptr_t arg);