mirror of
https://github.com/licsber/micropython.git
synced 2024-09-22 01:50:24 +08:00
e242b1785f
Only IPSR and BASEPRI special registers supported at the moment, but easy to extend in the future.
12 lines
158 B
Python
12 lines
158 B
Python
@micropython.asm_thumb
|
|
def getIPSR():
|
|
mrs(r0, IPSR)
|
|
|
|
@micropython.asm_thumb
|
|
def getBASEPRI():
|
|
mrs(r0, BASEPRI)
|
|
|
|
print(getBASEPRI())
|
|
print(getIPSR())
|
|
|