View previous topic :: View next topic |
Author |
Message |
lsj8924 How do I cheat?
Reputation: 0
Joined: 18 Aug 2020 Posts: 3
|
Posted: Tue Aug 18, 2020 8:39 pm Post subject: how to insert Assembly code in CE lua? |
|
|
I want to execute Assembly code in CE Lua,like inline assembly in C++. such as
push ebp
mov ebp,esp
mov eax,dword ptr ds:[0x1AF8DB8]
inc eax
mov edx,eax
shr edx,0x8
...
ret 8
Can it be achieved? [/quote]
|
|
Back to top |
|
 |
blankTM Cheater
Reputation: 1
Joined: 03 May 2020 Posts: 49
|
Posted: Wed Aug 19, 2020 5:23 am Post subject: Re: how to insert Assembly code in CE lua? |
|
|
autoAssemble
|
|
Back to top |
|
 |
JohnathanSweeney Newbie cheater
Reputation: 1
Joined: 04 Apr 2016 Posts: 20
|
|
Back to top |
|
 |
lsj8924 How do I cheat?
Reputation: 0
Joined: 18 Aug 2020 Posts: 3
|
Posted: Thu Aug 20, 2020 9:09 am Post subject: |
|
|
JohnathanSweeney wrote: | check the wiki:
|
thank you. autoAssemble is used for hooking the program. it's aimed to change the program's execution flow. I donnot need it. I want to execute Assembly just as a function in CE and get the result. such as:
[[
mov eax,0x12345678
and eax,0xFFFF
]]
I want to get the result 0x5678.
|
|
Back to top |
|
 |
blankTM Cheater
Reputation: 1
Joined: 03 May 2020 Posts: 49
|
Posted: Fri Aug 21, 2020 5:16 am Post subject: |
|
|
function AND(a,b)
autoAssemble([==[
globalAlloc(ANDO,50)
ANDO:
mov eax,[esp+4]
and eax,[esp+8]
ret
]==])
return executeCodeEx(1,nil,'ANDO',a,b)
end
print(AND(545,564))
|
|
Back to top |
|
 |
lsj8924 How do I cheat?
Reputation: 0
Joined: 18 Aug 2020 Posts: 3
|
Posted: Fri Aug 21, 2020 9:30 am Post subject: |
|
|
blankTM wrote: | function AND(a,b)
autoAssemble([==[
globalAlloc(ANDO,50)
ANDO:
mov eax,[esp+4]
and eax,[esp+8]
ret
]==])
return executeCodeEx(1,nil,'ANDO',a,b)
end
print(AND(545,564)) |
Thank you!!! you're awesome!!!
|
|
Back to top |
|
 |
|