Tutorial by Examples

jmp a_label ;Jump to a_label jmp bx ;Jump to address in BX jmp WORD [aPointer] ;Jump to address in aPointer jmp 7c0h:0000h ;Jump to segment 7c0h and offset 0000h jmp FAR WORD [aFarPointer] ;Jump to segment:offset...
In order to use a conditional jump a condition must be tested. Testing a condition here refers only to the act of checking the flags, the actual jumping is described under Conditional jumps. x86 tests conditions by relying on the EFLAGS register, which holds a set of flags that each instruction ca...
Based on the state of the flags the CPU can either execute or ignore a jump. An instruction that performs a jump based on the flags falls under the generic name of Jcc - Jump on Condition Code1. Synonyms and terminology In order to improve the readability of the assembly code, Intel defined severa...
Unsigned integers Greater than cmp eax, ebx ja a_label Greater than or equal cmp eax, ebx jae a_label Less than cmp eax, ebx jb a_label Less than or equal cmp eax, ebx jbe a_label Equal cmp eax, ebx je a_label Not equal cmp eax, ebx jne a_label Signed inte...

Page 1 of 1