diff options
Diffstat (limited to 'tests/inlineasm/asmconst.py')
-rw-r--r-- | tests/inlineasm/asmconst.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/inlineasm/asmconst.py b/tests/inlineasm/asmconst.py new file mode 100644 index 000000000..299a25093 --- /dev/null +++ b/tests/inlineasm/asmconst.py @@ -0,0 +1,8 @@ +# test constants in assembler + +@micropython.asm_thumb +def c1(): + movwt(r0, 0xffffffff) + movwt(r1, 0xf0000000) + sub(r0, r0, r1) +print(hex(c1())) |