1@micropython.asm_thumb 2def getIPSR(): 3 mrs(r0, IPSR) 4 5 6@micropython.asm_thumb 7def getBASEPRI(): 8 mrs(r0, BASEPRI) 9 10 11print(getBASEPRI()) 12print(getIPSR()) 13