2016-01-07 09:54:13 -05:00
|
|
|
# test constants in assembler
|
|
|
|
|
2020-03-22 22:26:08 -04:00
|
|
|
|
2016-01-07 09:54:13 -05:00
|
|
|
@micropython.asm_thumb
|
|
|
|
def c1():
|
2020-03-22 22:26:08 -04:00
|
|
|
movwt(r0, 0xFFFFFFFF)
|
|
|
|
movwt(r1, 0xF0000000)
|
2016-01-07 09:54:13 -05:00
|
|
|
sub(r0, r0, r1)
|
2020-03-22 22:26:08 -04:00
|
|
|
|
|
|
|
|
2016-01-07 09:54:13 -05:00
|
|
|
print(hex(c1()))
|