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 


some basic assembly help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun Nov 04, 2012 9:46 am    Post subject: some basic assembly help Reply with quote

I'm studying some assembly by myself and I can't figure out what jb and ja do.
I know that they work with the EFLAGS register but i don't really know how they change the Instruction Pointer.
Can someone explain this to me?
Thanks Smile

_________________
... Fresco
Back to top
View user's profile Send private message
SteveAndrew
Master Cheater
Reputation: 30

Joined: 02 Sep 2012
Posts: 323

PostPosted: Sat Nov 10, 2012 2:33 am    Post subject: Reply with quote

Okay well 'jb' and 'ja' are conditional jumps, that means only if a certain condition is true, then jump to the specified location. They are the unsigned versions (it jumps based on the value compared to which is treated as a positive number only) 'jl' and 'jg' would be the signed versions which would treat that compared to value as signed [so it could be either positive or negative])

Well how exactly they change the EIP, I'm not totally sure about that, but it does cause EIP to be changed ONLY when the condition is met 'jb' if its below, or 'ja' if its above!

You can't set the EIP register directly so we use jump instructions to do that for us. An unconditional jump 'jmp' will ALWAYS jump as there is no condition that has to be met for it to jump. It just will always make the jump.

Smile

_________________
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun Nov 18, 2012 4:41 am    Post subject: Reply with quote

i wasn't sure if.
Code:
jmp hello

would execute the code at address hello or not.
thank you.
anyways i found a very good x86 x64 reference that explains it all in detail.
here's the link:
http://siyobik.info.gf/main/reference
and this is also interesting:
http://zsmith.co/intel.html

_________________
... Fresco
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 Gamehacking 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