aboutsummaryrefslogtreecommitdiff
path: root/test/t2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/t2.c')
-rw-r--r--test/t2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/t2.c b/test/t2.c
new file mode 100644
index 0000000..1091313
--- /dev/null
+++ b/test/t2.c
@@ -0,0 +1,11 @@
+int dir = 0;
+
+void main() {
+ asm {
+ mov a, 2
+ mov b, @dir
+ hwi 1 // legs
+ }
+ dir = dir + 1;
+ if (dir == 4) dir = 0;
+}