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] Writing more then 1byte in C++ inline asm?

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

Joined: 13 Mar 2007
Posts: 542

PostPosted: Wed Dec 03, 2008 1:49 pm    Post subject: [Help] Writing more then 1byte in C++ inline asm? Reply with quote

Well, if i try this :

__asm mov dword ptr ds:[0x132435], 0x01, 0x01, 0x01, 0x01

i get an error, help?
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Wed Dec 03, 2008 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Wed Dec 03, 2008 1:53 pm    Post subject: Reply with quote

Thanks! +rep.

edit : how would you do value instead of bytes?
Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Wed Dec 03, 2008 2:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Wed Dec 03, 2008 3:18 pm    Post subject: Reply with quote

ty.
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