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 


Learning ASM Share #2: Conditional Statements

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

Joined: 25 Jan 2007
Posts: 353
Location: ytmnd.com

PostPosted: Sun Jun 24, 2007 12:11 pm    Post subject: Learning ASM Share #2: Conditional Statements Reply with quote

Conditional statements are "if, else, switch...case, do..while" etc. The statements that allow for repition of code without rewriting are loping statements.

ASM doesnt allow high level statements, so we use flags and registers =]

Opcodes/jumps related to Conditional Statements
JMP - uncoditional jump
JCC - jump if conditions are met
JCXZ/JECXZ - jump if CX/ECX equal 0
LOOP - loop count
CMOVCC - conditional move
SETCC - conditional set
And there's others...

TTTN(Conditional Test)
Look at my sig, its in the reference...

Conditional Jumps
For signed numbers:
JL/JNGE
JNL/JGE
JLE/JNG
JNLE/JG

For unsigned:
JC/JB/JNAE
JNC/JNB/JAE
JBE/JNA
JNBE/JA

And of course, the other(left outs =])
JO
JNO
JE/JZ
JNE/JNZ
JS
JNS
JP/JPE
JNP/JPO

Part 3 comming tomorrow, i think ill do two a day
Back to top
View user's profile Send private message Visit poster's website
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Sun Jun 24, 2007 2:51 pm    Post subject: Reply with quote

you didn't explain anything. the 'explanations' at the top are useless ("loop - loop count" -.-), and at the bottom you just named some of the conditional jumps without giving ANY explanation.
_________________


Don't laugh, I'm still learning photoshop!
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Sun Jun 24, 2007 4:38 pm    Post subject: Reply with quote

Lol, this isn't much of a tut/guide...I guess it's just definitions.. Rolling Eyes
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