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 


[Help Delphi] Can you add and subtract in Delphi?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Tue Dec 23, 2008 9:13 pm    Post subject: [Help Delphi] Can you add and subtract in Delphi? Reply with quote

The question says it....
Like add edi,1e
and change to sub edi,1e?
if so can you put a code for me
or tell me how

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Dec 23, 2008 11:02 pm    Post subject: Reply with quote

You mean you want to change an instruction in another program I guess?

Just write the appropriate bytes with WriteProcessMemory.
Back to top
View user's profile Send private message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Tue Dec 23, 2008 11:50 pm    Post subject: Reply with quote

Like this?

Code:
WriteProcessMemory(Handle, ptr(Offset), @Value, Size, card);


What should I fill in for the value? add edi,1e?

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Dec 24, 2008 12:26 am    Post subject: Reply with quote

wirte the bytes that make up the opcode.

add edi, 1e = 83 C7 1E
sub edi, 1e = 83 EF 1E

create a byte array, and write it to the address.


or do you literally mean add, and subtract within your program?

just use the + - * / operators.
Back to top
View user's profile Send private message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Wed Dec 24, 2008 12:46 am    Post subject: Reply with quote

slovach wrote:
wirte the bytes that make up the opcode.

add edi, 1e = 83 C7 1E
sub edi, 1e = 83 EF 1E

create a byte array, and write it to the address.


or do you literally mean add, and subtract within your program?

just use the + - * / operators.


Thanks I got it now
Imma try to rep you if I can

_________________
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