mirror of
https://github.com/micropython/micropython.git
synced 2025-09-04 17:00:30 +02:00
Thumb/Thumb2 tests are now into their own subdirectory, as RV32IMC-specific tests will be added as part of the RV32 inline assembler support. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
13 lines
159 B
Python
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())
|