mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
custom syscall example
This commit is contained in:
parent
508d41c8c5
commit
30b7ff4791
5 changed files with 120 additions and 0 deletions
10
test/custom_syscall/rom/rom.c
Normal file
10
test/custom_syscall/rom/rom.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "uvm32_target.h"
|
||||
|
||||
void main(void) {
|
||||
if (0xAABBCCDD == syscall(0xDEADBEEF, 0xABCD1234, 0xDECAFBAD)) {
|
||||
print("ok");
|
||||
} else {
|
||||
print("fail");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue