Lua:getInstructionSize
(Redirected from getInstructionSize)
Jump to navigation
Jump to search
| <> Function function getInstructionSize(address) : Integer |
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[edit]
| Parameter | Type | Description |
|---|---|---|
| address | Integer | The memory address of the instruction to analyze. |
Example[edit]
local size = getInstructionSize(0x401000)
print("Instruction size:", size)
See also[edit]
| Lua |
| Script Engine |
Related Functions[edit]
| autoAssemble |
| autoAssembleCheck |
| disassemble |
| splitDisassembledString |
| getInstructionSize |
| getPreviousOpcode |
| registerAssembler |
| unregisterAssembler |