| View previous topic :: View next topic |
| Author |
Message |
kingspades2 Master Cheater
Reputation: 0
Joined: 25 Jan 2007 Posts: 353 Location: ytmnd.com
|
Posted: Sun Jun 24, 2007 12:11 pm Post subject: Learning ASM Share #2: Conditional Statements |
|
|
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 |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Sun Jun 24, 2007 2:51 pm Post subject: |
|
|
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 |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sun Jun 24, 2007 4:38 pm Post subject: |
|
|
Lol, this isn't much of a tut/guide...I guess it's just definitions..
|
|
| Back to top |
|
 |
|