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

loads wordsize bytes, not n bytes.
This commit is contained in:
bal 1985-01-30 14:47:49 +00:00
parent e936aea1e1
commit db19d06f61

View file

@ -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);
}