The INC encoding is FE /0 meaning that a reg_opcode=0 constraint is needed in SLEIGH. This is missing from the memory variant (in lockable.sinc), which causes undefined FE xx instructions to be decoded as INC.
(Without this constraint, the constructors technically overlap with the DEC instruction, however, since the DEC instruction has the correct constraints it ends up getting matched first).
The
INC
encoding isFE /0
meaning that areg_opcode=0
constraint is needed in SLEIGH. This is missing from the memory variant (inlockable.sinc
), which causes undefinedFE xx
instructions to be decoded asINC
.(Without this constraint, the constructors technically overlap with the
DEC
instruction, however, since theDEC
instruction has the correct constraints it ends up getting matched first).e.g.,
x86:LE:64:default
(Existing): "INC byte ptr [RDI]"x86:LE:64:default
(This patch): (Invalid)