some tidying up

This commit is contained in:
2021-10-26 21:02:57 +02:00
parent af1c8f999b
commit 7f5dd9aa80
5 changed files with 63 additions and 17 deletions

10
xorscroll.hw Normal file
View File

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