keystone icon indicating copy to clipboard operation
keystone copied to clipboard

PowerPC : addo/addco/any instruction with the "o" prefix not supported

Open Random06457 opened this issue 4 years ago • 0 comments

Description

Keystone does not seem to handle instructions with the "o" prefix. The only difference between an "add" and an "addo" instruction for instance is that the OE flag (bit 10 of the instuction) is set.

Example:

$ kstool ppc32be "addo 0, 0, 1"
ERROR: failed on ks_asm() with count = 0, error = 'Invalid mnemonic (KS_ERR_ASM_MNEMONICFAIL)' (code = 514)

Expected behaviour

$ kstool ppc32be "addo 0, 0, 1"
addo 0, 0, 1 = [ 7c 00 0e 14 ]

Random06457 avatar Jun 12 '21 17:06 Random06457