summaryrefslogtreecommitdiffstatshomepage
path: root/py/asmx86.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-08 22:16:35 +0000
committerDamien George <damien.p.george@gmail.com>2014-09-08 22:16:35 +0000
commit6eae861685e8860e7542097ad20f69168e639a93 (patch)
tree13a9d01b42c8ffe8d43b31613c71319629c5a1d5 /py/asmx86.c
parent7ff996c2377b191ff829e6e03815acf9bfe85a14 (diff)
downloadmicropython-6eae861685e8860e7542097ad20f69168e639a93.tar.gz
micropython-6eae861685e8860e7542097ad20f69168e639a93.zip
py: Put define of x86 argument registers in asmx86.h.
Diffstat (limited to 'py/asmx86.c')
-rw-r--r--py/asmx86.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/asmx86.c b/py/asmx86.c
index 1946973bad..1570d9f7c0 100644
--- a/py/asmx86.c
+++ b/py/asmx86.c
@@ -496,13 +496,13 @@ void asm_x86_call_ind(asm_x86_t *as, void *ptr, mp_uint_t n_args, int temp_r32)
// TODO align stack on 16-byte boundary before the call
assert(n_args <= 3);
if (n_args > 2) {
- asm_x86_push_r32(as, REG_ARG_3);
+ asm_x86_push_r32(as, ASM_X86_REG_ARG_3);
}
if (n_args > 1) {
- asm_x86_push_r32(as, REG_ARG_2);
+ asm_x86_push_r32(as, ASM_X86_REG_ARG_2);
}
if (n_args > 0) {
- asm_x86_push_r32(as, REG_ARG_1);
+ asm_x86_push_r32(as, ASM_X86_REG_ARG_1);
}
#ifdef __LP64__
// We wouldn't run x86 code on an x64 machine. This is here to enable