cs_insn

Detail information of disassembled instruction

Members

Variables

address
ulong address;

Address (EIP) of this instruction This information is available even when CS_OPT_DETAIL = CS_OPT_OFF

bytes
ubyte[16] bytes;

Machine bytes of this instruction, with number of bytes indicated by @size above This information is available even when CS_OPT_DETAIL = CS_OPT_OFF

detail
cs_detail* detail;

Pointer to cs_detail. NOTE: detail pointer is only valid when both requirements below are met: (1) CS_OP_DETAIL = CS_OPT_ON (2) Engine is not in Skipdata mode (CS_OP_SKIPDATA option set to CS_OPT_ON)

id
uint id;

Instruction ID (basically a numeric ID for the instruction mnemonic) Find the instruction id in the 'ARCH_insn' enum in the header file of corresponding architecture, such as 'arm_insn' in arm.h for ARM, 'x86_insn' in x86.h for X86, etc... This information is available even when CS_OPT_DETAIL = CS_OPT_OFF NOTE: in Skipdata mode, "data" instruction has 0 for this id field.

mnemonic
char[CS_MNEMONIC_SIZE] mnemonic;

Ascii text of instruction mnemonic This information is available even when CS_OPT_DETAIL = CS_OPT_OFF

op_str
char[160] op_str;

Ascii text of instruction operands This information is available even when CS_OPT_DETAIL = CS_OPT_OFF

size
ushort size;

Size of this instruction This information is available even when CS_OPT_DETAIL = CS_OPT_OFF

Meta