keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Support BND prefix on x86

Open radare opened this issue 8 years ago • 3 comments

$ rasm2 -a x86.ks -b 64 "bnd jmp 0x22"
ks_asm: (bnd jmp 0x22) Invalid operand (KS_ERR_ASM_INVALIDOPERAND)
ks_asm: (bnd jmp 0x22) Invalid operand (KS_ERR_ASM_INVALIDOPERAND)
ks_asm: (bnd jmp 0x22) Invalid operand (KS_ERR_ASM_INVALIDOPERAND)
Cannot assemble 'bnd jmp 0x22' at line 3
invalid

$ rasm2 -a x86.ks -b 64 "jmp 0x22"
eb20

$ rasm2 -a x86 -b 64 -d f2eb1f
bnd jmp 0x22

radare avatar Mar 24 '17 09:03 radare

@radare Did you find a current workaround for this? I tried using KS_OPT_SYM_RESOLVER but it didnt get called when processing BND prefixed instructions.

koemeet avatar May 07 '17 18:05 koemeet

It's supported by the x86 assembler in r2

radare avatar May 08 '17 15:05 radare

me too have this error just now xD https://github.com/keystone-engine/keystone/issues/500

Succubussix avatar Jun 09 '21 10:06 Succubussix