circuitpython/tests/inlineasm/asmspecialregs.py
2021-03-15 19:27:36 +05:30

13 lines
159 B
Python

@micropython.asm_thumb
def getIPSR():
mrs(r0, IPSR)
@micropython.asm_thumb
def getBASEPRI():
mrs(r0, BASEPRI)
print(getBASEPRI())
print(getIPSR())