Lua:disassemble

From Cheat Engine
Jump to navigation Jump to search
<> Function

function disassemble(address) : String

Disassembles the instruction at the given memory address and returns a string in the format: "address - bytes - opcode : extra".

Function Parameters

Parameter Type Description
address Integer The memory address of the instruction to disassemble.

Example

local instr = disassemble(0x401000)
print(instr)
-- Output: "00401000 - FF 25 FA580601  - jmp qword ptr [01466900]"

See also

Lua
Script Engine

Related Functions

autoAssemble
autoAssembleCheck
disassemble
splitDisassembledString
getInstructionSize
getPreviousOpcode
registerAssembler
unregisterAssembler