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


@micropython.asm_thumb
def c1():
    movwt(r0, 0xFFFFFFFF)
    movwt(r1, 0xF0000000)
    sub(r0, r0, r1)


print(hex(c1()))