Difference between revisions of "Lua:getInstructionSize"

From Cheat Engine
Jump to navigation Jump to search
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
m
Line 15: Line 15:
 
|The address of the instruction
 
|The address of the instruction
 
|}
 
|}
 
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{Assembly}}
* [[Lua:disassemble|disassemble]]
 
* [[Lua:getPreviousOpcode|getPreviousOpcode]]
 
* [[Lua:splitDisassembledString|splitDisassembledString]]
 
* [[Lua:AOBScan|AOBScan]]
 
* [[Lua:autoAssemble|autoAssemble]]
 
* [[Lua:readBytes|readBytes]]
 
* [[Lua:readPointer|readPointer]]
 
* [[Lua:writeBytes|writeBytes]]
 
* [[Lua:readBytesLocal|readBytesLocal]]
 
* [[Lua:readPointerLocal|readPointerLocal]]
 
* [[Lua:writeBytesLocal|writeBytesLocal]]
 
* [[Lua:wordToByteTable|wordToByteTable]]
 
* [[Lua:dwordToByteTable|dwordToByteTable]]
 
* [[Lua:qwordToByteTable|qwordToByteTable]]
 
* [[Lua:floatToByteTable|floatToByteTable]]
 
* [[Lua:doubleToByteTable|doubleToByteTable]]
 
* [[Lua:stringToByteTable|stringToByteTable]]
 
* [[Lua:wideStringToByteTable|wideStringToByteTable]]
 
* [[Lua:byteTableToWord|byteTableToWord]]
 
* [[Lua:byteTableToDword|byteTableToDword]]
 
* [[Lua:byteTableToQword|byteTableToQword]]
 
* [[Lua:byteTableToFloat|byteTableToFloat]]
 
* [[Lua:byteTableToDouble|byteTableToDouble]]
 
* [[Lua:byteTableToString|byteTableToString]]
 
* [[Lua:byteTableToWideString|byteTableToWideString]]
 

Revision as of 00:19, 5 December 2025

function getInstructionSize(Address) : integer

Returns the size of an instruction (basically it disassembles the instruction and returns the number of bytes for you).

Function Parameters

Parameter Type Description
Address CEAddressString or Integer The address of the instruction

See also

Lua
Script Engine

Related Functions

autoAssemble
autoAssembleCheck
disassemble
splitDisassembledString
getInstructionSize
getPreviousOpcode
registerAssembler
unregisterAssembler