FreeER Grandmaster Cheater Supreme Reputation: 53 Joined: 09 Aug 2013 Posts: 1091
|
Posted: Thu Jan 25, 2018 2:51 pm Post subject: |
|
|
I'd noticed it wants the *immediate at the end but hadn't noticed it had immediate*register in the disassembly... yeah that could be annoying if you had a lot lol
simple solution in lua:
Code: | script = [=[
[ENABLE]
alloc(CEmem,$1000)
registersymbol(CEmem)
define(game,cheatengine-x86_64.exe)
CEmem:
fld [game+rax*2]
cmp [game+rax*8],1
// fld dword ptr [rax*2+cheatengine-x86_64.exe]
// cmp dword ptr [rax*8+cheatengine-x86_64.exe],01
[DISABLE]
dealloc(CEmem)
unregistersymbol(CEmem)
]=]
newscript = {}
for line in script:gmatch('[^\r\n]+') do
local line = line:gsub('%[(%a+)%*(%d+)%+(.*)%]', '[%3+%1*%2]')
-- print(line)
newscript[#newscript+1] = line
end
newscript = table.concat(newscript, '\r\n')
print(newscript) |
though I feel like it might also be possible to hook the disassembler and change the way it actually shows the instructions I don't feel like that'd work for templates etc. so....
|
|