From db19d06f6134b0ceff72610188f28398ee29625c Mon Sep 17 00:00:00 2001 From: bal Date: Wed, 30 Jan 1985 14:47:49 +0000 Subject: [PATCH] CLASS12 added for the LOI instruction. A "LOI n", n < wordsize, loads wordsize bytes, not n bytes. --- util/ego/share/parser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/ego/share/parser.c b/util/ego/share/parser.c index 94ddb51c0..86624752d 100644 --- a/util/ego/share/parser.c +++ b/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); } -- 2.34.1