diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-01-24 22:46:14 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-01-24 22:46:14 +0100 |
commit | f36879c1d42e34d593dff204e26ecfb10eb6dfac (patch) | |
tree | 6cf7247f6b9ecca271a529ebf05c194e99dcdae2 /test | |
parent | 20d898496b7371872bfd128a895d39465f13c970 (diff) |
Asm literals and hwi
Diffstat (limited to 'test')
-rw-r--r-- | test/t2.c | 11 |
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; +} |