Kaynağa Gözat

CLASS12 added for the LOI instruction. A "LOI n", n < wordsize,
loads wordsize bytes, not n bytes.

bal 39 yıl önce
ebeveyn
işleme
a3ed92a887
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      util/ego/share/parser.c

+ 5 - 0
util/ego/share/parser.c

@@ -29,6 +29,7 @@ typedef struct class *class_p;
 #define CLASS9	9
 #define CLASS10 10
 #define CLASS11	11
+#define CLASS12	12
 
 #include "classdefs.h"
 /* The file classdefs.h contains the table classtab. It is
@@ -66,6 +67,7 @@ STATIC bool uses_arg(class)
 		case CLASS3:
 		case CLASS4:
 		case CLASS11:
+		case CLASS12:
 			return TRUE;
 		default:
 			return FALSE;
@@ -181,6 +183,9 @@ STATIC offset nrbytes(class,arg1,arg2)
 		case CLASS11:
 			n = arg1 + 2*ps;
 			break;
+		case CLASS12:
+			n = (arg1 < ws ? ws : arg1);
+			break;
 		default:
 			assert(FALSE);
 	}