summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-15 16:39:24 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-15 16:39:24 +0100
commitd4a799f152a4823fe15003f2db908801fb84533c (patch)
tree754515e452e9c215dc6de5718be78eafe7ed209c /py/emitnative.c
parentb92cbe612913a7c9d066c34912a3f77fe6392b2b (diff)
downloadmicropython-d4a799f152a4823fe15003f2db908801fb84533c.tar.gz
micropython-d4a799f152a4823fe15003f2db908801fb84533c.zip
py: Make asm_arm_less_op take destination register as first arg.
This gets ARM native emitter working againg and addresses issue #858.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index 0bddfbabad..9b3793966c 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -1514,7 +1514,7 @@ STATIC void emit_native_binary_op(emit_t *emit, mp_binary_op_t op) {
asm_thumb_mov_rlo_i8(emit->as, REG_RET, 0); // if r0 >= r1
asm_thumb_mov_rlo_i8(emit->as, REG_RET, 1); // if r0 < r1
#elif N_ARM
- asm_arm_less_op(emit->as, REG_ARG_2, REG_ARG_3);
+ asm_arm_less_op(emit->as, REG_RET, REG_ARG_2, REG_ARG_3);
#else
#error not implemented
#endif