Difference between revisions of "Lua:getInstructionSize"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''function''' getInstructionSize(''Address'')
+
[[Category:Lua]]
 +
'''function''' getInstructionSize(''Address'') ''':''' integer
  
 
Returns the size of an instruction (basically it disassembles the instruction and returns the number of bytes for you).
 
Returns the size of an instruction (basically it disassembles the instruction and returns the number of bytes for you).
Line 16: Line 17:
  
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
  
 
=== Related Functions ===
 
=== Related Functions ===
* [[disassemble]]
+
* [[Lua:disassemble|disassemble]]
* [[getPreviousOpcode]]
+
* [[Lua:getPreviousOpcode|getPreviousOpcode]]
* [[splitDisassembledString]]
+
* [[Lua:splitDisassembledString|splitDisassembledString]]
* [[AOBScan]]
+
* [[Lua:AOBScan|AOBScan]]
* [[autoAssemble]]
+
* [[Lua:autoAssemble|autoAssemble]]
* [[readBytes]]
+
* [[Lua:readBytes|readBytes]]
* [[readPointer]]
+
* [[Lua:readPointer|readPointer]]
* [[writeBytes]]
+
* [[Lua:writeBytes|writeBytes]]
* [[readBytesLocal]]
+
* [[Lua:readBytesLocal|readBytesLocal]]
* [[readPointerLocal]]
+
* [[Lua:readPointerLocal|readPointerLocal]]
* [[writeBytesLocal]]
+
* [[Lua:writeBytesLocal|writeBytesLocal]]
* [[wordToByteTable]]
+
* [[Lua:wordToByteTable|wordToByteTable]]
* [[dwordToByteTable]]
+
* [[Lua:dwordToByteTable|dwordToByteTable]]
* [[qwordToByteTable]]
+
* [[Lua:qwordToByteTable|qwordToByteTable]]
* [[floatToByteTable]]
+
* [[Lua:floatToByteTable|floatToByteTable]]
* [[doubleToByteTable]]
+
* [[Lua:doubleToByteTable|doubleToByteTable]]
* [[stringToByteTable]]
+
* [[Lua:stringToByteTable|stringToByteTable]]
* [[wideStringToByteTable]]
+
* [[Lua:wideStringToByteTable|wideStringToByteTable]]
* [[byteTableToWord]]
+
* [[Lua:byteTableToWord|byteTableToWord]]
* [[byteTableToDword]]
+
* [[Lua:byteTableToDword|byteTableToDword]]
* [[byteTableToQword]]
+
* [[Lua:byteTableToQword|byteTableToQword]]
* [[byteTableToFloat]]
+
* [[Lua:byteTableToFloat|byteTableToFloat]]
* [[byteTableToDouble]]
+
* [[Lua:byteTableToDouble|byteTableToDouble]]
* [[byteTableToString]]
+
* [[Lua:byteTableToString|byteTableToString]]
* [[byteTableToWideString]]
+
* [[Lua:byteTableToWideString|byteTableToWideString]]

Revision as of 01:18, 25 January 2018

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

Related Functions