8086 Control Flow Instruction
8086 Control Flow Instruction
If the parity flag is set, the JP / JPE instruction will cause a jump to
the specified destination address.
JNP / JPO (JUMP IF NO PARITY / JUMP IF PARITY ODD)
If the number of 1’s left in the lower 8 bits of a data word after an
instruction which affects the parity flag is odd, then the parity flag is 0.
The JNP / JPO instruction will cause a jump to the specified destination
address, if the parity flag is 0.
JO (JUMP IF OVERFLOW)
They are often used with the Compare String instruction
or with the Scan String instruction.
They will cause the string instruction to be repeated as
long as the compared bytes or words are equal (ZF = 1)
and CX is not yet counted down to zero.
In other words, there are two conditions that will stop
the repetition: CX = 0 or string bytes or words not
equal.
REPE CMPSB ;Compare string bytes until end of string
or
until string bytes not equal.
REPNE and REPNZ are also two mnemonics for the
same prefix. They stand for repeat if not equal and
repeat if not zero, respectively.
They are often used with the Compare String
instruction or with the Scan String instruction.
They will cause the string instruction to be repeated as
.
MISCELLANEOUS INSTRUCTIONS
HLT (HALT PROCESSING)