diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-13 02:30:35 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-13 02:30:35 +0000 |
commit | 0d967b8ae4f26815549aa2fb301e7bbaa5e262c2 (patch) | |
tree | 1aa5becd808433be13db8f828a10873d684e53f5 /tests | |
parent | dfe944c3e5c2a7fa04c3416266728ffce6332bf8 (diff) | |
download | micropython-0d967b8ae4f26815549aa2fb301e7bbaa5e262c2.tar.gz micropython-0d967b8ae4f26815549aa2fb301e7bbaa5e262c2.zip |
py: Implement push/pop for inline Thumb assembler.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/inlineasm/asmpushpop.py | 8 | ||||
-rw-r--r-- | tests/inlineasm/asmpushpop.py.exp | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/inlineasm/asmpushpop.py b/tests/inlineasm/asmpushpop.py new file mode 100644 index 0000000000..c9005434ba --- /dev/null +++ b/tests/inlineasm/asmpushpop.py @@ -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)) diff --git a/tests/inlineasm/asmpushpop.py.exp b/tests/inlineasm/asmpushpop.py.exp new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/tests/inlineasm/asmpushpop.py.exp @@ -0,0 +1 @@ +1 |