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