Difference between revisions of "Lua:disassemble"

From Cheat Engine
Jump to navigation Jump to search
m (Added CodeBox Template.)
m (Syntax Highlighting.)
 
Line 17: Line 17:
  
 
===Example===
 
===Example===
<pre>
+
<syntaxhighlight lang="lua" line>
 
local instr = disassemble(0x401000)
 
local instr = disassemble(0x401000)
 
print(instr)
 
print(instr)
 
-- Output: "00401000 - FF 25 FA580601  - jmp qword ptr [01466900]"
 
-- Output: "00401000 - FF 25 FA580601  - jmp qword ptr [01466900]"
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
 
{{Assembly}}
 
{{Assembly}}

Latest revision as of 19:26, 25 June 2026

<> 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]"

See Also[edit]

Main Pages

Assembler and Disassembler Related Lua Functions