You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
193 B
14 lines
193 B
10 years ago
|
@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)))
|