The jump occurs if ZF = 0 or if OF = SF.
JGE (JNL) INSTRUCTION
Purpose: Conditional jump, and the sign is taken into account.
Syntax:
JGE label
It jumps if it is larger or less than, or equal to.
The jump is done if SF = OF
JL (JNGE) INSTRUCTION
Purpose: Conditional jump, and the sign is taken into account.
Syntax:
JL label
It jumps if it is less than or if it is not larger than or equal to.
The jump is done if SF is different than OF.
JLE (JNG) INSTRUCTION
Purpose: Conditional jump, and the sign is taken into account.
Syntax:
JLE label
It jumps if it is less than or equal to, or if it is not larger.
The jump is done if ZF = 1 or if SF is defferent than OF.
JC INSTRUCTION
Purpose: Conditional jump, and the flags are taken into account.
Syntax:
JC label
It jumps if there is cartage.
The jump is done if CF = 1
JNC INSTRUCTION
Purpose: Conditional jump, and the state of the flags is taken into
account.
Syntax:
JNC label
It jumps if there is no cartage.
The jump is done if CF = 0.
JNO INSTRUCTION
Purpose: Conditional jump, and the state of the flags is taken into
account.
Syntax:
JNO label
It jumps if there is no overflow.
The jump is done if OF = 0.
JNP (JPO) INSTRUCTION
Purpose: Conditional jump, and the state of the flags is taken into
account.
Syntax:
JNP label
It jumps if there is no parity or if the parity is uneven.
The jump is done if PF = 0.
JNS INSTRUCTION
Purpose: Conditional jump, and the state of the flags is taken into
account.
Syntax:
JNP label
It jumps if the sign is deactivated.
The jump is done if SF = 0.
JO INSTRUCTION
Purpose: Conditional jump, and the state of the flags is taken into
account.
Syntax:
JO label
It jumps if there is overflow.
The jump is done if OF = 1.
JP (JPE) INSTRUCTION
Purpose: Conditional jump, the state of the flags is taken into account.
Syntax:
JP label
It jumps if there is parity or if the parity is even.
The jump is done if PF = 1.
JS INSTRUCTION
Purpose: Conditional jump, and the state of the flags is taken into
account.
Syntax:
JS label
It jumps if the sign is on.
The jump is done if SF = 1.
4.7 Instructions for cycles:loop
They transfer the process flow, conditionally or unconditionally, to a
destiny, repeating this action until the counter is zero.
LOOP
LOOPE
LOOPNE
LOOP INSTRUCTION
Purpose: To generate a cycle in the program.
Syntax:
LOOP label
The loop instruction decreases CX on 1, and transfers the flow of the
program to the label given as operator if CX is different than 1.
LOOPE INSTRUCTION
Purpose: To generate a cycle in the program considering the state of ZF.
Syntax:
LOOPE label
This instruction decreases CX by 1. If CX is different to zero and ZF is
equal to 1, then the flow of the program is transferred to the label
indicated as operator.
LOOPNE INSTRUCTION
Purpose: To generate a cycle in the program, considering the state of ZF.
Syntax:
LOOPNE label
This instruction decreases one from CX and transfers the flow of the
program only if ZF is different to 0.