micropython: add micropython component
This commit is contained in:
16
components/language/micropython/tests/inlineasm/asmbitops.py
Normal file
16
components/language/micropython/tests/inlineasm/asmbitops.py
Normal file
@@ -0,0 +1,16 @@
|
||||
@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)))
|
Reference in New Issue
Block a user