| View previous topic :: View next topic |
| Author |
Message |
ello154 Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2007 Posts: 822
|
Posted: Tue Dec 23, 2008 9:13 pm Post subject: [Help Delphi] Can you add and subtract in Delphi? |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Dec 23, 2008 11:02 pm Post subject: |
|
|
You mean you want to change an instruction in another program I guess?
Just write the appropriate bytes with WriteProcessMemory.
|
|
| Back to top |
|
 |
ello154 Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2007 Posts: 822
|
Posted: Tue Dec 23, 2008 11:50 pm Post subject: |
|
|
Like this?
| Code: | | WriteProcessMemory(Handle, ptr(Offset), @Value, Size, card); |
What should I fill in for the value? add edi,1e?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Dec 24, 2008 12:26 am Post subject: |
|
|
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 |
|
 |
ello154 Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2007 Posts: 822
|
Posted: Wed Dec 24, 2008 12:46 am Post subject: |
|
|
| 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 |
|
 |
|