mirror of
https://gitlab.com/qemu-project/capstone.git
synced 2025-06-29 04:31:51 +08:00
Honour direction bit in fmove instruction (#1709)
Co-authored-by: Michal Schulz <michal@Michals-iMac-Pro.local>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user