Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


calling asm file

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Fri Jun 23, 2017 6:08 pm    Post subject: calling asm file Reply with quote

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
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Sat Jun 24, 2017 2:25 am    Post subject: Reply with quote

try include
http://wiki.cheatengine.org/index.php?title=Auto_Assembler:include

as for trainers you may have to explicitly include the file in the package

_________________
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
View user's profile Send private message MSN Messenger
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Sat Jun 24, 2017 2:34 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Sat Jun 24, 2017 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Sat Jun 24, 2017 3:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites