Instruction object represents a single disassembled instruction in the binary, including its address, size, mnemonic, and operands.
Fields
| Field | Description | Type |
|---|---|---|
address | Instruction address | AddressValue |
size | Instruction size | number |
mnemonic | Instruction mnemonic | string |
operands | Instruction operands | {address: AddressValue, register: string, value: number}[] |
Reference
address
The address of the instruction in the binary.size
The size of the instruction in bytes.mnemonic
The mnemonic (operation code) of the instruction, e.g.,mov, add, jmp.
operands
An array of tables, each representing an operand of the instruction.Each operand table may contain the keys:
address, register, or value, depending on the operand type.