InstructionInfo¶
- class iced_x86.InstructionInfo¶
Contains accessed registers and memory locations
- op_access(operand)¶
Gets operand access
- Parameters:
operand (int) – Operand number, 0-4
- Returns:
Operand access
- Return type:
- Raises:
ValueError – If operand is invalid
- used_memory()¶
Gets all accessed memory locations
- Returns:
All accessed memory locations
- Return type:
List[UsedMemory]
- used_registers()¶
Gets all accessed registers.
This method doesn’t return all accessed registers if
Instruction.is_save_restore_instructionisTrue.- Returns:
All accessed registers
- Return type:
List[UsedRegister]
Some instructions have a
r16/r32operand but only use the low 8 bits of the register. In that case this method returns the 8-bit register even if it’sSPL,BPL,SIL,DILand the instruction was decoded in 16 or 32-bit mode. This is more accurate than returning ther16/r32register. Example instructions that do this:PINSRB,ARPL