first running uw8 module

This commit is contained in:
2021-10-26 20:29:57 +02:00
parent 3b4eeb5f9c
commit af1c8f999b
5 changed files with 28 additions and 13 deletions

View File

@@ -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;
}
}