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 


Change the assembly code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
skyw4rrior
Advanced Cheater
Reputation: 0

Joined: 21 Aug 2005
Posts: 67

PostPosted: Wed Aug 24, 2005 12:30 pm    Post subject: Change the assembly code Reply with quote

Hi.. Im making a game trainer in delphi... and i have to modify the assembly code of an address of the game (the original assembly of that address is "MOV [EAX+EBP+41],CL" and i want to change it to
"MOV [EAX+EBP+41],DL" )
Can someone tell me how can i do this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Aug 24, 2005 9:21 pm    Post subject: Reply with quote

stand on the address and just type it in and press enter
_________________
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
bitterbanana
Cheater
Reputation: 0

Joined: 28 Nov 2004
Posts: 44

PostPosted: Wed Aug 24, 2005 11:39 pm    Post subject: Reply with quote

1. first assemble the asm code to hex
2. find the window handle of your game using FindWindow API
3. use WriteProcessMemory API to write the hex to the game

this isn't too specific, but it'll get you started. Just search around for those api functions.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Aug 25, 2005 10:16 am    Post subject: Reply with quote

ah yes, didn't read it correctly. But do what bitterbanana says. (and also use virtualprotectex since code is usually read only and sometimes even writeprocessmemory wont work then)
_________________
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
skyw4rrior
Advanced Cheater
Reputation: 0

Joined: 21 Aug 2005
Posts: 67

PostPosted: Thu Aug 25, 2005 2:30 pm    Post subject: Reply with quote

yes i tryed it.. but didnt work.. i used ce to read the value at that address, and it matches with the result of the readprocessmemory in my program code.. but when i use the writeprocessmemory it dont work correctly.. the value read has 11 numbers, but the writeprocessmemory writes only 10...
Back to top
View user's profile Send private message
bitterbanana
Cheater
Reputation: 0

Joined: 28 Nov 2004
Posts: 44

PostPosted: Thu Aug 25, 2005 6:13 pm    Post subject: Reply with quote

there's an extra parameter in the functions for the number of bytes you're writing or reading. Check it out.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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