| View previous topic :: View next topic |
| Author |
Message |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 1:49 pm Post subject: [Help] Writing more then 1byte in C++ inline asm? |
|
|
Well, if i try this :
__asm mov dword ptr ds:[0x132435], 0x01, 0x01, 0x01, 0x01
i get an error, help?
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Wed Dec 03, 2008 1:51 pm Post subject: |
|
|
If you want to write the array:
0x12, 0x34, 0x56, 0x78
Then you could do:
__asm mov dword ptr ds:[0x132435], 0x78563412
(Mind the reversed order)
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 1:53 pm Post subject: |
|
|
Thanks! +rep.
edit : how would you do value instead of bytes?
|
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Wed Dec 03, 2008 2:45 pm Post subject: |
|
|
| kb3z0n wrote: | Thanks! +rep.
edit : how would you do value instead of bytes? |
Values are the same as bytes except instead of the process running the operation of the bytes it just reads what the bytes are.
Example:
The address to the number of bullets you have (FPS) has bytes like 00, 01, etc ...
That address is basically a variable the process reads/writes to.
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 3:18 pm Post subject: |
|
|
| ty.
|
|
| Back to top |
|
 |
|