17 lines
319 B
Zig
17 lines
319 B
Zig
const nova64 = @import("nova64.zig");
|
|
|
|
pub fn main() void {
|
|
_ = add(1, 2);
|
|
while (true) {
|
|
nova64.log("Hello from Zig!");
|
|
// nova64.yield();
|
|
nova64.ppuClear(0x00);
|
|
nova64.ppuSwapBuffers();
|
|
nova64.sleep(16);
|
|
}
|
|
}
|
|
|
|
export fn add(a: i32, b: i32) i32 {
|
|
return a + b;
|
|
}
|