diff options
Diffstat (limited to 'tests/inlineasm/asmbitops.py')
-rw-r--r-- | tests/inlineasm/asmbitops.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/inlineasm/asmbitops.py b/tests/inlineasm/asmbitops.py new file mode 100644 index 0000000000..8cf92b301f --- /dev/null +++ b/tests/inlineasm/asmbitops.py @@ -0,0 +1,13 @@ +@micropython.asm_thumb +def clz(r0): + clz(r0, r0) + +print(clz(0xf0)) +print(clz(0x8000)) + +@micropython.asm_thumb +def rbit(r0): + rbit(r0, r0) + +print(hex(rbit(0xf0))) +print(hex(rbit(0x8000))) |