summaryrefslogtreecommitdiffstatshomepage
path: root/tests/inlineasm/thumb/asmconst.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/inlineasm/thumb/asmconst.py')
-rw-r--r--tests/inlineasm/thumb/asmconst.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/inlineasm/thumb/asmconst.py b/tests/inlineasm/thumb/asmconst.py
new file mode 100644
index 0000000000..8412dd2c72
--- /dev/null
+++ b/tests/inlineasm/thumb/asmconst.py
@@ -0,0 +1,11 @@
+# test constants in assembler
+
+
+@micropython.asm_thumb
+def c1():
+ movwt(r0, 0xFFFFFFFF)
+ movwt(r1, 0xF0000000)
+ sub(r0, r0, r1)
+
+
+print(hex(c1()))