diff --git a/common/uvm32_common_custom.h b/common/uvm32_common_custom.h index 69760cc..82bb6f4 100644 --- a/common/uvm32_common_custom.h +++ b/common/uvm32_common_custom.h @@ -9,4 +9,6 @@ #define UVM32_SYSCALL_PRINTHEX 0x00000005 #define UVM32_SYSCALL_MILLIS 0x00000006 #define UVM32_SYSCALL_PRINTBUF 0x00000007 +#define UVM32_SYSCALL_RENDER 0x00000008 +#define UVM32_SYSCALL_GETKEY 0x00000009 diff --git a/common/uvm32_target.h b/common/uvm32_target.h index a5393df..90504b0 100644 --- a/common/uvm32_target.h +++ b/common/uvm32_target.h @@ -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;