Difference between revisions of "Auto Assembler:readMem"
Jump to navigation
Jump to search
(Created page with ''''Auto Assembler''' readMem(''Address'', ''Size'') Writes the memory at the specified address with the specified size to the current location. Tip: Use to store the original b…') |
m |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Assembler]] | ||
'''Auto Assembler''' readMem(''Address'', ''Size'') | '''Auto Assembler''' readMem(''Address'', ''Size'') | ||
− | + | Copy a memory block of ''Size'' bytes from the specified ''Address'' to the current location. | |
Tip: Use to store the original bytes if the injection location has a changing address that is hard coded in on game or level load. Or if there are code changes with updates when using a shifted [[Auto Assembler:aobScan|aobScan]]. | Tip: Use to store the original bytes if the injection location has a changing address that is hard coded in on game or level load. Or if there are code changes with updates when using a shifted [[Auto Assembler:aobScan|aobScan]]. | ||
− | === | + | === 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 13: | Line 14: | ||
|Address | |Address | ||
|string | |string | ||
− | |The address or symbol to read | + | |The address or symbol to read; hexadecimal, unless specified otherwise |
|- | |- | ||
|Size | |Size | ||
|integer | |integer | ||
− | |The number of bytes to read | + | |The number of bytes to read; decimal, unless specified otherwise |
|} | |} | ||
Line 25: | Line 26: | ||
readMem(00123ABC, 5) | readMem(00123ABC, 5) | ||
+ | alloc(x,16) | ||
+ | alloc(script,2048) | ||
+ | |||
+ | script: | ||
+ | mov eax,[x] | ||
+ | mov edx,[x+c] | ||
+ | ret | ||
+ | |||
+ | x: | ||
+ | readmem(00410000,16) //copy 16 bytes from address 00410000 at the current address of "x" | ||
== 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]] | ||
+ | * [[Auto_Assembler:aobScanRegion|aobScanRegion]] | ||
* [[Auto Assembler:alloc|alloc]] | * [[Auto Assembler:alloc|alloc]] | ||
* [[Auto Assembler:dealloc|dealloc]] | * [[Auto Assembler:dealloc|dealloc]] | ||
+ | * [[Auto Assembler:globalAlloc|globalAlloc]] | ||
* [[Auto Assembler:createThread|createThread]] | * [[Auto Assembler:createThread|createThread]] | ||
* [[Auto Assembler:define|define]] | * [[Auto Assembler:define|define]] | ||
* [[Auto Assembler:fullAccess|fullAccess]] | * [[Auto Assembler:fullAccess|fullAccess]] | ||
− | |||
* [[Auto Assembler:include|include]] | * [[Auto Assembler:include|include]] | ||
* [[Auto Assembler:label|label]] | * [[Auto Assembler:label|label]] | ||
Line 44: | Line 57: | ||
* [[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 14:09, 22 April 2022
Auto Assembler readMem(Address, Size)
Copy a memory block of Size bytes from the specified Address to the current location.
Tip: Use to store the original bytes if the injection location has a changing address that is hard coded in on game or level load. Or if there are code changes with updates when using a shifted aobScan.
Command Parameters[edit]
Parameter | Type | Description |
---|---|---|
Address | string | The address or symbol to read; hexadecimal, unless specified otherwise |
Size | integer | The number of bytes to read; decimal, unless specified otherwise |
Examples[edit]
SomeSymbol: readMem(00123ABC, 5)
alloc(x,16) alloc(script,2048) script: mov eax,[x] mov edx,[x+c] ret x: readmem(00410000,16) //copy 16 bytes from address 00410000 at the current address of "x"