diff mc-code-ia32.c @ 126:1d1612fe705a

*** empty log message ***
author kono
date Wed, 26 Mar 2003 16:50:12 +0900
parents 5f180dc8d84e
children eb4d8975926c
line wrap: on
line diff
--- a/mc-code-ia32.c	Mon Mar 24 12:15:53 2003 +0900
+++ b/mc-code-ia32.c	Wed Mar 26 16:50:12 2003 +0900
@@ -213,18 +213,22 @@
 }
 
 int 
-get_input_register_var(int i,NMTBL *nptr)
+get_input_register_var(int i,NMTBL *nptr,int is_code)
 {
-    i =  virtual(i+REG_ESI);
-    regs[i]=regv[i]=1;
-    return list3(REGISTER,i,(int)nptr);
+    if (is_code) {
+	if (i>=MAX_CODE_INPUT_REGISTER_VAR) return 0;
+	i =  virtual(i+REG_ESI);
+	regs[i]=regv[i]=1;
+	return list3(REGISTER,i,(int)nptr);
+    } else {
+	return 0;
+    }
 }
 
 int 
-get_input_fregister_var(int i,NMTBL *nptr)
+get_input_fregister_var(int i,NMTBL *nptr,int is_code)
 {
-    error(-1);
-    return -1;
+    return 0;
 }
 
 int