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 


[C++]0x0000<-?

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

Joined: 09 Jul 2006
Posts: 762
Location: Poland.

PostPosted: Fri Dec 19, 2008 6:03 am    Post subject: [C++]0x0000<-? Reply with quote

yo.

Quote:
*(WORD*)0x00001337 = 0x9090; //9090 mean 2 byte nop so just nop. but i only know that nop... where i can learn how to convert ex. db 0F 84 this to 0x**** Confused
TehHax = 1;


this mean adress 00001337 will be nop.
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Fri Dec 19, 2008 6:10 am    Post subject: Reply with quote

are you retarded? if nop nop = db 90 90

then db 0f 84 = 0x0f84
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Dec 19, 2008 6:15 am    Post subject: Reply with quote

Actually the bytes order is opposite.
0x840F.
Back to top
View user's profile Send private message
Wiw3K
Grandmaster Cheater
Reputation: 0

Joined: 09 Jul 2006
Posts: 762
Location: Poland.

PostPosted: Fri Dec 19, 2008 6:20 am    Post subject: Reply with quote

SXGuy wrote:
are you retarded? if nop nop = db 90 90

then db 0f 84 = 0x0f84

.... i said 0x9090 mean NOP -.-
how you know db 0f 84 = 0x0f84 ?? i want to learn how you convert it

Symbol wrote:
Actually the bytes order is opposite.
0x840F.

so this is correct?

how you know it should be 0x840f ? how about db thing
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Fri Dec 19, 2008 7:07 am    Post subject: Reply with quote

what you're seeing at CE calls auto assembly
CE familiar with that syntax cuz it was built for it
asm language doesn't know what db 90 90 means
db in asm means define byte (a byte size variable)
db 90 90 means in auto asm define byte at the specific address (in that case nop nop)
in C++ we'll say
Code:

*(BYTE*)addr = 0x90;
*(BYTE*)(addr + 0x1) = 0x90;
// or
// *(WORD*)addr = 9090;

the hex bytes you're talking about at the top are already hex Surprised
you should read them from the end to start and put them inside the address
jut like symbol said - db 12 34 = 3412
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Fri Dec 19, 2008 2:00 pm    Post subject: Reply with quote

DB means data byte.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Dec 19, 2008 7:55 pm    Post subject: Reply with quote

Go on CheatEngine open memory viewer. See the Opcodes? To the left of it are the bytes corresponding to the opcode. Put two and two together and yah!
Back to top
View user's profile Send private message AIM Address MSN Messenger
Zerith
Master Cheater
Reputation: 1

Joined: 07 Oct 2007
Posts: 468

PostPosted: Fri Dec 19, 2008 11:19 pm    Post subject: Reply with quote

nog_lorp wrote:
DB means data byte.


Define Byte. Wink
Back to top
View user's profile Send private message MSN Messenger
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