Difference between revisions of "Auto Assembler:define"

From Cheat Engine
Jump to navigation Jump to search
(Examples)
(2 intermediate revisions by the same user not shown)
Line 46: Line 46:
 
  00400500:
 
  00400500:
 
  clear_eax
 
  clear_eax
 +
 +
aobScanModule(aobTestHook, Tutorial-i386.exe, 8Bxxxxxxxxxx8Bxxxx89xx8Bxxxx8Bxxxxxxxxxx)
 +
define(injTestHook, aobTestHook+6)
 +
registerSymbol(injTestHook)
  
 
== See also ==
 
== See also ==
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
 +
* [[Auto_Assembler:Commands|Auto Assembler Commands]]
  
 
=== Related Commands ===
 
=== Related Commands ===

Revision as of 00:45, 13 January 2018

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

define(fillValue,0x64)
define(fillValue,(int)100)
DEFINE(clear_eax,xor eax,eax)
00400500:
clear_eax
aobScanModule(aobTestHook, Tutorial-i386.exe, 8Bxxxxxxxxxx8Bxxxx89xx8Bxxxx8Bxxxxxxxxxx)
define(injTestHook, aobTestHook+6)
registerSymbol(injTestHook)

See also

Related Commands