summaryrefslogtreecommitdiffstatshomepage
path: root/tests/inlineasm/asmconst.py
blob: 299a25093c7b3db1760b5d87a7cc5eaaf044746b (plain) (blame)
1
2
3
4
5
6
7
8
# test constants in assembler

@micropython.asm_thumb
def c1():
    movwt(r0, 0xffffffff)
    movwt(r1, 0xf0000000)
    sub(r0, r0, r1)
print(hex(c1()))