summaryrefslogtreecommitdiff
path: root/tests/inlineasm/asmconst.py
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2021-03-15 13:50:49 -0500
committerGitHub <noreply@github.com>2021-03-15 13:50:49 -0500
commit05ed179e11599dd45a76dfb14ecf624d0ff96d68 (patch)
treea046c6d1f117814168150484ed1bf7840d3400d7 /tests/inlineasm/asmconst.py
parent3cbff45f9aac5ea2855bbc888083d356a91c80fe (diff)
parentf9b4189b4c640823dabb76de8effd2a836da2eb0 (diff)
Merge pull request #4362 from microDev1/code-formatting
Add code formatting and translations check
Diffstat (limited to 'tests/inlineasm/asmconst.py')
-rw-r--r--tests/inlineasm/asmconst.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/inlineasm/asmconst.py b/tests/inlineasm/asmconst.py
index 299a25093..8412dd2c7 100644
--- a/tests/inlineasm/asmconst.py
+++ b/tests/inlineasm/asmconst.py
@@ -1,8 +1,11 @@
# test constants in assembler
+
@micropython.asm_thumb
def c1():
- movwt(r0, 0xffffffff)
- movwt(r1, 0xf0000000)
+ movwt(r0, 0xFFFFFFFF)
+ movwt(r1, 0xF0000000)
sub(r0, r0, r1)
+
+
print(hex(c1()))