keystone-engine / keystone

Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
http://www.keystone-engine.org
GNU General Public License v2.0
2.29k stars 456 forks source link

les rax, ptr [r8] #100

Open mrexodia opened 8 years ago

mrexodia commented 8 years ago
0x00007FF6C0544C35 "les rax, ptr [r8]" failed to assemble (ks_asm() failed: count = 0, error = 512):
    Expected (03) 4B C4 00 
aquynh commented 8 years ago

LES should not work in 64bit mode, so this is actually not a bug

$ kstool x32 "les eax, dword ptr [eax]"
les eax, dword ptr [eax] = [ c4 00 ]
mrexodia commented 8 years ago

Then what is this instruction I disassembled?

aquynh commented 8 years ago

looks like invalid code to me