mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Add UVM32_SYSCALL_RAND to get a "true" random number from the host, as I want to play zigtris and not have it be the same every time.
This commit is contained in:
parent
3d83844d5c
commit
d780c4e69d
6 changed files with 18 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ static uint32_t syscall(uint32_t id, uint32_t param1, uint32_t param2) {
|
|||
#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)
|
||||
#define rand() syscall_cast(UVM32_SYSCALL_RAND, 0, 0)
|
||||
|
||||
extern char _estack;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue