Difference between revisions of "Auto Assembler:define"

From Cheat Engine
Jump to navigation Jump to search
Line 21: Line 21:
 
  mov eax,(float)100.0
 
  mov eax,(float)100.0
  
=== Function Parameters ===
+
=== Command Parameters ===
 
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
!align="left"|Parameter
 
!align="left"|Parameter
Line 46: Line 46:
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
  
=== Related Functions ===
+
=== Related Commands ===
 
* [[Auto Assembler:aobScan|aobScan]]
 
* [[Auto Assembler:aobScan|aobScan]]
 
* [[Auto Assembler:aobScanModule|aobScanModule]]
 
* [[Auto Assembler:aobScanModule|aobScanModule]]

Revision as of 21:41, 11 March 2017

Auto Assembler define(Name, Value)

Creates a token with the specified name that will be replaced with the text of it's value.

Note: Uses basic replacement before script is ran, white space is not striped, so.

This:

define(address,  00 12 3A BC  )
...
address:
  db 90 90 90

Becomes this:

  00 12 3A BC  :
  db 90 90 90

This:

define(fullValue,(float)100.0)
...
mov eax,fullValue

Becomes this:

mov eax,(float)100.0

Command Parameters

Parameter Type Description
Name string The name of the token to define
Value string The value of the token to define


Examples

createThread(SomeSymbol)
createThread(00123ABC)


See also

Related Commands