aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-24 22:46:14 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-24 22:46:14 +0100
commitf36879c1d42e34d593dff204e26ecfb10eb6dfac (patch)
tree6cf7247f6b9ecca271a529ebf05c194e99dcdae2 /test
parent20d898496b7371872bfd128a895d39465f13c970 (diff)
Asm literals and hwi
Diffstat (limited to 'test')
-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;
+}