asmconst.py 153 B

12345678
  1. # test constants in assembler
  2. @micropython.asm_thumb
  3. def c1():
  4. movwt(r0, 0xffffffff)
  5. movwt(r1, 0xf0000000)
  6. sub(r0, r0, r1)
  7. print(hex(c1()))