summaryrefslogtreecommitdiffstatshomepage
path: root/tests/inlineasm/asmsum.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/inlineasm/asmsum.py')
-rw-r--r--tests/inlineasm/asmsum.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/inlineasm/asmsum.py b/tests/inlineasm/asmsum.py
index 93d8eec8dc..6535a495d4 100644
--- a/tests/inlineasm/asmsum.py
+++ b/tests/inlineasm/asmsum.py
@@ -22,6 +22,7 @@ def asm_sum_words(r0, r1):
mov(r0, r2)
+
@micropython.asm_thumb
def asm_sum_bytes(r0, r1):
@@ -46,16 +47,17 @@ def asm_sum_bytes(r0, r1):
mov(r0, r2)
+
import uarray as array
-b = array.array('l', (100, 200, 300, 400))
+b = array.array("l", (100, 200, 300, 400))
n = asm_sum_words(len(b), b)
print(b, n)
-b = array.array('b', (10, 20, 30, 40, 50, 60, 70, 80))
+b = array.array("b", (10, 20, 30, 40, 50, 60, 70, 80))
n = asm_sum_bytes(len(b), b)
print(b, n)
-b = b'\x01\x02\x03\x04'
+b = b"\x01\x02\x03\x04"
n = asm_sum_bytes(len(b), b)
print(b, n)