keystone
keystone copied to clipboard
Support BND prefix on x86
$ 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 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.
It's supported by the x86 assembler in r2
me too have this error just now xD https://github.com/keystone-engine/keystone/issues/500