micropython: add micropython component
This commit is contained in:
11
components/language/micropython/tests/inlineasm/asmconst.py
Normal file
11
components/language/micropython/tests/inlineasm/asmconst.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# test constants in assembler
|
||||
|
||||
|
||||
@micropython.asm_thumb
|
||||
def c1():
|
||||
movwt(r0, 0xFFFFFFFF)
|
||||
movwt(r1, 0xF0000000)
|
||||
sub(r0, r0, r1)
|
||||
|
||||
|
||||
print(hex(c1()))
|
Reference in New Issue
Block a user