mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 11:46:43 +01:00
added support for function imports
This commit is contained in:
9
xorscroll.cwa
Normal file
9
xorscroll.cwa
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user