changeset 793:aa2db7c70d42

rbx illegal usage
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 22 Nov 2010 14:31:47 +0900
parents 3622e3f561db
children 032dc03be02e
files mc-code-i64.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mc-code-i64.c	Mon Nov 22 14:14:15 2010 +0900
+++ b/mc-code-i64.c	Mon Nov 22 14:31:47 2010 +0900
@@ -2222,7 +2222,7 @@
     if (car(e2) == FNAME) {     
         printf("\tcall\t_%s\n",fn->nm);
     } else {
-        printf("\tcall\t*%s\n",register_name(REG_EBX,0));
+        printf("\tcall\t*%s\n",register_name(REG_EDX,0));
     }
 }
 
@@ -2254,7 +2254,7 @@
         fn=ncaddr(e2);
     } else {    
         if (car(e2)==INDIRECT) e2=cadr(e2); // (*func)(i) case
-        jmp = list3(REGISTER,REG_EBX,0);
+        jmp = list3(REGISTER,REG_EDX,0);
 
         if (!simple_arg(e2)) {
             e3=get_register_var(0);