Lua:disassemble

From Cheat Engine
(Redirected from disassemble)
Jump to navigation Jump to search

<> Lua API Reference

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[edit]

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

Example[edit]

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

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Assembler and Disassembler Related Lua Functions

Auto assembler, disassembly helpers, instruction size lookup, and assembler callbacks