added optional .w to OP_EA_D
authoreck <none@none>
Tue, 21 Aug 1990 10:59:09 +0000 (10:59 +0000)
committereck <none@none>
Tue, 21 Aug 1990 10:59:09 +0000 (10:59 +0000)
mach/m68k2/as/mach4.c

index 1085b8c..a8c0c36 100644 (file)
@@ -32,8 +32,11 @@ operation
                        }
        |       BITOP ea_ea
                        {       bitop($1);}
-       |       OP_EA_D ea ',' DREG
-                       {       emit2($1 | mrg_2 | $4<<9);
+       |       OP_EA_D sizedef ea ',' DREG
+                       {       if ($2 != SIZE_W) {
+                                       serror("illegal size");
+                               }
+                               emit2($1 | mrg_2 | $5<<9);
                                ea_2(SIZE_W, DTA);
                        }
        |       LEA ea ',' AREG