Honour direction bit in fmove instruction (#1709)
Co-authored-by: Michal Schulz <michal@Michals-iMac-Pro.local>
This commit is contained in:
parent
2bc4e7cae7
commit
cb3c3548e9
|
@ -2062,8 +2062,17 @@ static void d68020_cpgen(m68k_info *info)
|
|||
ext->op_size.type = M68K_SIZE_TYPE_CPU;
|
||||
ext->op_size.cpu_size = 0;
|
||||
|
||||
op0 = &ext->operands[0];
|
||||
op1 = &ext->operands[1];
|
||||
// Special case - adjust direction of fmove
|
||||
if ((opmode == 0x00) && ((next >> 13) & 0x1) != 0)
|
||||
{
|
||||
op0 = &ext->operands[1];
|
||||
op1 = &ext->operands[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
op0 = &ext->operands[0];
|
||||
op1 = &ext->operands[1];
|
||||
}
|
||||
|
||||
if (rm == 0 && supports_single_op && src == dst) {
|
||||
ext->op_count = 1;
|
||||
|
|
Loading…
Reference in New Issue