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 


ASM Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
darkassassinclone
How do I cheat?
Reputation: 0

Joined: 28 Jun 2012
Posts: 3

PostPosted: Thu Jun 28, 2012 6:50 pm    Post subject: ASM Help Reply with quote

Hello all, first post;

im trying to run code when a routine is called (Ingame Menu), when i press the button it goes from 00--01 and thats when i want my code to execute (and not delete itself)

right now i have:
Code:

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
pushes into function, then calls it 

originalcode:
need help here

exit:
jmp returnhere

menu address:
jmp newmem
returnhere:


using memory view it looks like:
(not pressed) address = x, bytes = 00 00, Opcode = add [eax],al
(pressed) address = x, bytes = 01 00, Opcode = add [eax],eax

what would i put in "original code:" ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Thu Jun 28, 2012 7:23 pm    Post subject: Reply with quote

the original bytes of the instructions ad "menu address" that you overwrite with the 5 byte jmp

If you use the code injection template this will be done for you

_________________
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
darkassassinclone
How do I cheat?
Reputation: 0

Joined: 28 Jun 2012
Posts: 3

PostPosted: Thu Jun 28, 2012 8:12 pm    Post subject: Reply with quote

K got it working by changing address
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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