Skip to content

x64: error in parsing some MOVHPS opcodes #96

@LRGH

Description

@LRGH
from amoco.arch.x64 import cpu_x64 as cpu
i = cpu.disassemble(b'\x41\x0f\x16\x45\x68\x00\x00')
assert i.length==5
assert i.mnemonic=='MOVHPS'
assert str(i) == 'movhps      xmm0, qword ptr [r13+0x68]'

Fails because i.length is 6.

The hack at LRGH@5609706 solves the issue, but there should be a better fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions