DecoderOptions¶
Decoder options
- iced_x86.DecoderOptions.NO_INVALID_CHECK: int = 1¶
Disable some checks for invalid encodings of instructions, eg. most instructions can’t use a
LOCKprefix so if one is found, they’re decoded asiced_x86.Code.INVALIDunless this option is enabled.
- iced_x86.DecoderOptions.AMD: int = 2¶
AMD decoder: allow 16-bit branch/ret instructions in 64-bit mode, no
o64 CALL/JMP FAR [mem], o64 LSS/LFS/LGS,UD0has no modr/m byte, decodeLOCK MOV CR. The AMD decoder can still decode Intel instructions.
- iced_x86.DecoderOptions.FORCE_RESERVED_NOP: int = 4¶
Decode opcodes
0F0Dand0F18-0F1Fas reserved-nop instructions (eg.iced_x86.Code.RESERVEDNOP_RM32_R32_0F1D)