yet another fix, this time to divu/divul/divs/divsl

This commit is contained in:
ceriel 1987-08-12 18:32:15 +00:00
parent 0ba64871f6
commit a6bf3e8892

View file

@ -67,14 +67,14 @@ instruction
{ /* 64 bit dividend or product */ { /* 64 bit dividend or product */
checksize($2, 4); checksize($2, 4);
T_EMIT2((046000 | ($1 & ~1)) | mrg_2, 0, 0, 0); T_EMIT2((046000 | ($1 & ~1)) | mrg_2, 0, 0, 0);
T_EMIT2(($1&1)<<11 | $7<<12 | $5 | 02000,0,0,0); T_EMIT2(($1&1)<<11 | $7<<12 | $5 ,0,0,0);
ea_2(SIZE_L, DTA); ea_2(SIZE_L, DTA);
} }
| DIVL sizedef ea ',' DREG ':' DREG | DIVL sizedef ea ',' DREG ':' DREG
{ /* 32 bit long division with remainder */ { /* 32 bit long division with remainder */
checksize($2, 4); checksize($2, 4);
T_EMIT2(($1 & ~1) | mrg_2, 0, 0, 0); T_EMIT2(($1 & ~1) | mrg_2, 0, 0, 0);
T_EMIT2(($1 & 1)<<11 | $7<<12 | $5, 0, 0, 0); T_EMIT2(($1 & 1)<<11 | $7<<12 | $5 | 02000, 0, 0, 0);
ea_2(SIZE_L, DTA); ea_2(SIZE_L, DTA);
} }
| LEA ea ',' AREG | LEA ea ',' AREG