diff options
Diffstat (limited to 'tests/inlineasm/asmspecialregs.py')
-rw-r--r-- | tests/inlineasm/asmspecialregs.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/inlineasm/asmspecialregs.py b/tests/inlineasm/asmspecialregs.py new file mode 100644 index 0000000000..edfe4c2bd7 --- /dev/null +++ b/tests/inlineasm/asmspecialregs.py @@ -0,0 +1,11 @@ +@micropython.asm_thumb +def getIPSR(): + mrs(r0, IPSR) + +@micropython.asm_thumb +def getBASEPRI(): + mrs(r0, BASEPRI) + +print(getBASEPRI()) +print(getIPSR()) + |