Difference between revisions of "Auto Assembler:alloc"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Note: Use [[Auto Assembler:dealloc|dealloc]] to free the memory when done. | Note: Use [[Auto Assembler:dealloc|dealloc]] to free the memory when done. | ||
− | === | + | === 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 43: | Line 43: | ||
* [[Cheat_Engine:Auto Assembler|Auto Assembler]] | * [[Cheat_Engine:Auto Assembler|Auto Assembler]] | ||
− | === Related | + | === Related Commands === |
* [[Auto Assembler:aobScan|aobScan]] | * [[Auto Assembler:aobScan|aobScan]] | ||
* [[Auto Assembler:aobScanModule|aobScanModule]] | * [[Auto Assembler:aobScanModule|aobScanModule]] |
Revision as of 21:40, 11 March 2017
Auto Assembler alloc(SymbolName, Size, AllocateNearThisAddress OPTIONAL)
Allocates a certain amount of memory and defines the symbol name in the script. If 'AllocateNearThisAddress' is specified CE will try to allocate the memory near that address. This is useful for 64-bit targets where the jump distance could be bigger than 2GB otherwise.
Note: Use dealloc to free the memory when done.
Command Parameters
Parameter | Type | Description |
---|---|---|
SymbolName | string | The symbol name to use for allocated memory |
Size | integer | The byte size of the block of memory to allocate |
AllocateNearThisAddress | string | The address to allocate near if given |
Examples
alloc(SomeSymbol, 0x4)
alloc(SomeSymbol, 0x1000)
alloc(SomeSymbol, $1000)
alloc(SomeSymbol, 0x4, Tutorial-x86_64.exe+164C2)
alloc(SomeSymbol, 0x1000, Tutorial-x86_64.exe+164C2)
alloc(SomeSymbol, $1000, Tutorial-x86_64.exe+164C2)