Skip to content

Disassembly Error, repne movsd #2491

@jskew

Description

@jskew
import capstone

print(capstone.__version__)
md = capstone.Cs( capstone.CS_ARCH_X86, capstone.CS_MODE_32 )
insn = next(md.disasm(b'\xf2\xa4', 0, 1)); print('%s %s %s' % (insn.bytes.hex(), insn.mnemonic, insn.op_str))
insn = next(md.disasm(b'\xf2\xa5', 0, 1)); print('%s %s %s' % (insn.bytes.hex(), insn.mnemonic, insn.op_str))

5.0.3

f2a4 repne movsb byte ptr es:[edi], byte ptr [esi]
f2a5 movsd dword ptr es:[edi], dword ptr [esi]

It should be:

f2a4 repne movsb byte ptr es:[edi], byte ptr [esi]
f2a5 repne movsd dword ptr es:[edi], dword ptr [esi]

Metadata

Metadata

Assignees

No one assigned

    Labels

    X86ArchbugSomething is not working as it should

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions