added support for function imports

This commit is contained in:
2021-11-03 22:07:55 +01:00
parent 4f70a65866
commit 4793c4eb69
11 changed files with 101 additions and 21 deletions

9
xorscroll.cwa Normal file
View File

@@ -0,0 +1,9 @@
import "env.memory" memory(2);
export fn tic(time: i32) {
let i: i32;
loop frame {
i?120 = (i % 320 + time / 10) ^ (i / 320);
branch_if (i := i + 1) < 320*256: frame;
}
}