diff mc-code-powerpc.c @ 246:0dcc0ec81ed2

MIPS on going (90%)
author kono
date Mon, 10 May 2004 21:12:55 +0900
parents 8a72b0afccfc
children 1452eb0eab20
line wrap: on
line diff
--- a/mc-code-powerpc.c	Thu May 06 11:38:56 2004 +0900
+++ b/mc-code-powerpc.c	Mon May 10 21:12:55 2004 +0900
@@ -2234,19 +2234,9 @@
     char *crn;
     use_int(creg);
     crn = register_name(creg);
-    if (byte==1) {
-	printf("\tlbz %s,%d(%s)\n",register_name(creg),n,
+    printf("\t%s %s,%d(%s)\n",cload(byte),register_name(creg),n,
 	    register_name(xreg));
-	if (sign)
-	    printf("\textsb %s,%s\n",crn,crn);
-    } else if (byte==SIZE_OF_SHORT) {
-	printf("\tlhz %s,%d(%s)\n",register_name(creg),n,
-	    register_name(xreg));
-	if (sign)
-	    printf("\textsh %s,%s\n",crn,crn);
-    } else 
-	printf("\tlwz %s,%d(%s)\n",register_name(creg),n,
-	    register_name(xreg));
+    cext(sign,byte,creg);
 }
 
 int