cas instruction was encoded wrong
This commit is contained in:
parent
055635d63d
commit
85348f653d
2 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ instruction
|
||||||
{ T_EMIT2(03300 | $2, 0, 0, 0);}
|
{ T_EMIT2(03300 | $2, 0, 0, 0);}
|
||||||
| CAS sizedef DREG ',' DREG ',' ea
|
| CAS sizedef DREG ',' DREG ',' ea
|
||||||
{ T_EMIT2(04300 | (($2+0100)<<3) | mrg_2,0,0,0);
|
{ T_EMIT2(04300 | (($2+0100)<<3) | mrg_2,0,0,0);
|
||||||
T_EMIT2($5 | ($3<<6),0,0,0);
|
T_EMIT2($3 | ($5<<6),0,0,0);
|
||||||
ea_2($2, MEM|ALT);
|
ea_2($2, MEM|ALT);
|
||||||
}
|
}
|
||||||
| CAS2 sizedef DREG ':' DREG ',' DREG ':' DREG ','
|
| CAS2 sizedef DREG ':' DREG ',' DREG ':' DREG ','
|
||||||
|
|
|
@ -25,7 +25,7 @@ emit_instr()
|
||||||
{
|
{
|
||||||
register instr_t *ip;
|
register instr_t *ip;
|
||||||
|
|
||||||
for (ip=instr; ip<instrp; emit2(ip++->i_word)) {
|
for (ip=instr; ip<instrp; emit2((ip++)->i_word)) {
|
||||||
#ifdef RELOCATION
|
#ifdef RELOCATION
|
||||||
RELOMOVE(relonami, ip->i_relonami);
|
RELOMOVE(relonami, ip->i_relonami);
|
||||||
if (ip->i_reloinfo)
|
if (ip->i_reloinfo)
|
||||||
|
|
Loading…
Add table
Reference in a new issue