GregoryComer / rust-x86asm

A Rust library for x86/64 assembly/disassembly.
MIT License
51 stars 11 forks source link

Failed to disassemble `rex ucomisd %xmm0,%xmm0` #1

Open sunfishcode opened 6 years ago

sunfishcode commented 6 years ago

The following fails in x86asm 0.1.0:

    let buffer = Cursor::new([0x66, 0x40, 0x0f, 0x2e, 0xc0]);
    let mut reader = InstructionReader::new(buffer, Mode::Long);
    match reader.read() {
        Ok(_) => (),
        Err(e) => panic!("{:?}", e),
    }

This byte sequence represents the x64 instruction rex ucomisd %xmm0,%xmm0.

GregoryComer commented 6 years ago

Thanks, I'll take a look.