mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
first running uw8 module
This commit is contained in:
6
test.hw
6
test.hw
@@ -1,10 +1,10 @@
|
||||
import "uw8.ram" memory(2);
|
||||
import "uw8.time" global time: i32;
|
||||
import "uw8.time" global mut time: i32;
|
||||
|
||||
export fn tic() {
|
||||
let i = 0;
|
||||
let i: i32;
|
||||
loop frame {
|
||||
i?64 = (i % 320 + time / 10) ^ (i / 320);
|
||||
i?120 = (i % 320 + time / 10) ^ (i / 320);
|
||||
branch_if (i := i + 1) < 320*256: frame;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user