Lua:getInstructionSize
Jump to navigation
Jump to search
Returns the size (in bytes) of the instruction at the given address. Basically, it disassembles the instruction and returns how many bytes it occupies.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| address | Integer | The memory address of the instruction to analyze. |
Example
1 local size = getInstructionSize(0x401000)
2 print("Instruction size:", size)