py: Implement push/pop for inline Thumb assembler.

This commit is contained in:
Damien George
2015-02-13 02:30:35 +00:00
parent dfe944c3e5
commit 0d967b8ae4
3 changed files with 77 additions and 2 deletions

View 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))

View File

@@ -0,0 +1 @@
1