Implement nova64 API with native yield function and registration

This commit is contained in:
Lukas Höppner
2026-08-10 12:43:13 +02:00
parent 1cfcd5a169
commit 27c3aaf88f
7 changed files with 79 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
extern "nova64" fn yield(timeout_ms: u32) void;
pub fn main() void {
_ = add(1, 2);
while (true) {
yield(16); // Yield for 1 second
}
}
export fn add(a: i32, b: i32) i32 {
return a + b;
}