mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
py: Implement push/pop for inline Thumb assembler.
This commit is contained in:
8
tests/inlineasm/asmpushpop.py
Normal file
8
tests/inlineasm/asmpushpop.py
Normal file
@@ -0,0 +1,8 @@
|
||||
@micropython.asm_thumb
|
||||
def f(r0, r1, r2):
|
||||
push({r0})
|
||||
push({r1, r2})
|
||||
pop({r0})
|
||||
pop({r1, r2})
|
||||
|
||||
print(f(0, 1, 2))
|
||||
1
tests/inlineasm/asmpushpop.py.exp
Normal file
1
tests/inlineasm/asmpushpop.py.exp
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
Reference in New Issue
Block a user