Difference between revisions of "Auto Assembler:define"
Jump to navigation
Jump to search
m |
|||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Assembler]] | ||
'''Auto Assembler''' define(''Name'', ''Value'') | '''Auto Assembler''' define(''Name'', ''Value'') | ||
− | Creates a token with the specified name that will be replaced with the text of | + | Creates a token with the specified name that will be replaced with the text of its value. |
− | Note: Uses basic replacement before script is ran, | + | Note: Uses basic replacement before script is ran, whitespace is not stripped. |
This: | This: | ||
− | define(address, 00 12 3A BC | + | define(address, 00 12 3A BC) |
... | ... | ||
address: | address: | ||
Line 21: | Line 22: | ||
mov eax,(float)100.0 | mov eax,(float)100.0 | ||
− | === | + | === 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 38: | Line 39: | ||
== Examples == | == 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 == | == See also == | ||
* [[Cheat_Engine:Auto Assembler|Auto Assembler]] | * [[Cheat_Engine:Auto Assembler|Auto Assembler]] | ||
+ | * [[Auto_Assembler:Commands|Auto Assembler Commands]] | ||
− | === Related | + | === Related Commands === |
* [[Auto Assembler:aobScan|aobScan]] | * [[Auto Assembler:aobScan|aobScan]] | ||
* [[Auto Assembler:aobScanModule|aobScanModule]] | * [[Auto Assembler:aobScanModule|aobScanModule]] | ||
Line 61: | Line 70: | ||
* [[Auto Assembler:registerSymbol|registerSymbol]] | * [[Auto Assembler:registerSymbol|registerSymbol]] | ||
* [[Auto Assembler:unregisterSymbol|unregisterSymbol]] | * [[Auto Assembler:unregisterSymbol|unregisterSymbol]] | ||
− | * [[Auto Assembler:LUA|LUA | + | * [[Auto Assembler:LUA ASM|LUA ASM]] |
− |
Latest revision as of 10:38, 16 February 2022
Auto Assembler define(Name, Value)
Creates a token with the specified name that will be replaced with the text of its value.
Note: Uses basic replacement before script is ran, whitespace is not stripped.
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[edit]
Parameter | Type | Description |
---|---|---|
Name | string | The name of the token to define |
Value | string | The value of the token to define |
Examples[edit]
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)