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

fnstsw dword ptr [rax - 0x4716fec7] #106

Open mrexodia opened 8 years ago

mrexodia commented 8 years ago
0x00007FF6C0C9BAAC "fnstsw dword ptr [rax - 0x4716fec7]" failed to assemble (ks_asm() failed: count = 0, error = 512):
    Expected (06) DD B8 39 01 E9 B8
aquynh commented 8 years ago

perhaps Capstone is incorrect here on the size: replace dword with word will do it.

$ kstool x64 "fnstsw word ptr [rax - 0x4716fec7]"
fnstsw word ptr [rax - 0x4716fec7] = [ dd b8 39 01 e9 b8 ]