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