Add render and getkey syscalls, for host-sdl use.

This commit is contained in:
Toby Jaffey 2025-12-12 14:25:01 +00:00
parent 9836500503
commit ed57b62f79
2 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,8 @@ static uint32_t syscall(uint32_t id, uint32_t param1, uint32_t param2) {
#define getc() syscall_cast(UVM32_SYSCALL_GETC, 0, 0)
#define yield(x) syscall_cast(UVM32_SYSCALL_YIELD, x, 0)
#define printbuf(x, y) syscall_cast(UVM32_SYSCALL_PRINTBUF, x, y)
#define render(x, y) syscall_cast(UVM32_SYSCALL_RENDER, x, y)
#define getkey() syscall_cast(UVM32_SYSCALL_GETKEY, 0, 0)
extern char _estack;