View previous topic :: View next topic |
Author |
Message |
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Fri Jun 23, 2017 6:08 pm Post subject: calling asm file |
|
|
Code: |
/*
assume this is an aob script
to hook health function
and there we want to call out .ASM file to perform some other function.
*/
[enable]
aobscanmodule(something,some.exe,*? ?* ?? **)
alloc(mem,64)
label(what)
mem:
// so for example
cmp [edi+04],FF
jle // idk where lol, anyway.
// then here i want to call my asm.asm file. how could i call it?
// some function to call .asm file.
// assume it called now, will it continue to the next lines?
mov ecx,00
what:
mov ecx,[esp+08]
mov [edi+04],ecx
something:
jmp mem
nop
[disable]
dealloc(mem)
|
EDIT: one more thing, for example edi+04 is our health location.
can i increase it from that .asm file?
and if i include this file in my trainer will it work?
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sat Jun 24, 2017 2:34 am Post subject: |
|
|
ok, thanks darky.
ehm one question here: do you THINK keyboard mapping will work in that asm file once included?
e.g. press space to perform.some action
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Sat Jun 24, 2017 2:42 am Post subject: |
|
|
if your script fetches the keystate and then acts accordingly, then yes
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sat Jun 24, 2017 3:15 am Post subject: |
|
|
ehm, i thought that would be easy, idk. it deserve a try.
thanks
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
|