fixed EXG instruction

This commit is contained in:
ceriel 1987-08-12 18:37:20 +00:00
parent a6bf3e8892
commit ab341e1c93

View file

@ -151,17 +151,17 @@ instruction
}
| EXG reg ',' reg
{ if (($2 & 010) == 0)
T_EMIT2(
emit2(
(0140500|$4|$2<<9)
+
(($4&010)<<3)
,0,0,0);
);
else
T_EMIT2(
(0140600|$2|($4&07)<<9)
emit2(
(0140610|$2|($4&07)<<9)
-
(($4&010)<<3)
,0,0,0);
);
}
| SWAP DREG
{ T_EMIT2(044100 | $2,0,0,0);}