Sanglante Cheater
Reputation: 0
Joined: 27 Sep 2018 Posts: 43
|
Posted: Fri Oct 30, 2020 8:12 am Post subject: registersymbol between lua and script |
|
|
hi.
I'm trying to write most part of my code as lua like this :
| Code: | local MainAddress = readInteger("MainOrig+2")+getAddress("BaseAddress")
registerSymbol("Main",MainAddress) |
here is register a Symbol on a value that i check a lot in my code(as other)
but when i try to use [Main] in AA script it seems he don't find it
| Code: | mem = allocateMemory(0x1024)
registerSymbol("FirstCode",mem)
script = [[
FirstCode:
cmp [Main],1
...code...
...code...
...code...
]]
autoAssemble(Script) |
if i write cmp eax,1 no problem the code will be set but the fact i refer to this "Main" that is allready registered as a symbol when i try to autoAssemble it doesn't write any AA code
Someone may eplain this please ?
try to move it in AA i have an offset to big error on "Main" line
|
|