ea8be373a9
movwt can now move a full 32-bit constant into a register.
9 lines
153 B
Python
9 lines
153 B
Python
# test constants in assembler
|
|
|
|
@micropython.asm_thumb
|
|
def c1():
|
|
movwt(r0, 0xffffffff)
|
|
movwt(r1, 0xf0000000)
|
|
sub(r0, r0, r1)
|
|
print(hex(c1()))
|