Difference between revisions of "Template:Asm:LoadPtrsToRegisters"

From Cheat Engine
Jump to navigation Jump to search
(Created page with 'Category:Scripting ===Load Pointers Into Registers=== ''in some cases you might need to load a pointer into a register'', ''here how its done''. <code style="background:#FF…')
(No difference)

Revision as of 02:41, 3 February 2018


Load Pointers Into Registers

in some cases you might need to load a pointer into a register, here how its done.

[enable]


aobscan(symbol,01 23 45 67 89 AB CD EF)

alloc(newmem,$1000)

registersymbol(symbol)

registersymbol(pointer)


label(pointer)

label(originalcode)

label(exit)


newmem:

lea eax,[[[[[["Executable.exe"+00123ABC]+4]+56]+0]+789]+DEF]

mov [pointer],eax


originalcode:

mov eax,[edx+110]

jmp exit


pointer:

dd 00


symbol:

jmp newmem

nop


exit:


[disable]


unregistersymbol(pointer)

dealloc(newmem)


symbol:

mov eax,[edx+110]


unregistersymbol(symbol)