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 | EXG reg ',' reg
{ if (($2 & 010) == 0) { if (($2 & 010) == 0)
T_EMIT2( emit2(
(0140500|$4|$2<<9) (0140500|$4|$2<<9)
+ +
(($4&010)<<3) (($4&010)<<3)
,0,0,0); );
else else
T_EMIT2( emit2(
(0140600|$2|($4&07)<<9) (0140610|$2|($4&07)<<9)
- -
(($4&010)<<3) (($4&010)<<3)
,0,0,0); );
} }
| SWAP DREG | SWAP DREG
{ T_EMIT2(044100 | $2,0,0,0);} { T_EMIT2(044100 | $2,0,0,0);}