Difference between revisions of "Lua:getInstructionSize"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' getInstructionSize(''Address'') Returns the size of an instruction (basically it disassembles the instruction and returns the number of bytes for you). === Funct…')
 
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
 
(7 intermediate revisions by 2 users 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]]
* [[writeFloat]]
+
* [[Lua:readBytesLocal|readBytesLocal]]
* [[readBytesLocal]]
+
* [[Lua:readPointerLocal|readPointerLocal]]
* [[readPointerLocal]]
+
* [[Lua:writeBytesLocal|writeBytesLocal]]
* [[writeBytesLocal]]
+
* [[Lua:wordToByteTable|wordToByteTable]]
* [[wordToByteTable]]
+
* [[Lua:dwordToByteTable|dwordToByteTable]]
* [[dwordToByteTable]]
+
* [[Lua:qwordToByteTable|qwordToByteTable]]
* [[qwordToByteTable]]
+
* [[Lua:floatToByteTable|floatToByteTable]]
* [[floatToByteTable]]
+
* [[Lua:doubleToByteTable|doubleToByteTable]]
* [[doubleToByteTable]]
+
* [[Lua:stringToByteTable|stringToByteTable]]
* [[stringToByteTable]]
+
* [[Lua:wideStringToByteTable|wideStringToByteTable]]
* [[wideStringToByteTable]]
+
* [[Lua:byteTableToWord|byteTableToWord]]
* [[byteTableToWord]]
+
* [[Lua:byteTableToDword|byteTableToDword]]
* [[byteTableToDword]]
+
* [[Lua:byteTableToQword|byteTableToQword]]
* [[byteTableToQword]]
+
* [[Lua:byteTableToFloat|byteTableToFloat]]
* [[byteTableToFloat]]
+
* [[Lua:byteTableToDouble|byteTableToDouble]]
* [[byteTableToDouble]]
+
* [[Lua:byteTableToString|byteTableToString]]
* [[byteTableToString]]
+
* [[Lua:byteTableToWideString|byteTableToWideString]]
* [[byteTableToWideString]]
 

Latest revision as of 19:07, 18 March 2019

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

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


See also[edit]

Related Functions[edit]