Beruflich Dokumente
Kultur Dokumente
Instructions
Unconditional Jump
Instruction - JMP
This
instruction unconditionally
transfers control to the target
location. The target location contains
the next instruction to be executed
by the microprocessor.
Unconditional Jump
Instruction - JMP
Unconditional Jump
Instruction - JMP
Unconditional Jump
Instruction - JMP
INTRASEGMENT JUMP
INTERSEGMENT JUMP
Unconditional Jump
Instruction - JMP
RELATIVE OPERAND
A relative operand is
a signed
displacement from
the JMP instruction to
the target location.
The address of the
target location can be
obtained by adding
the displacement
from the JMP
instruction.
INDIRECT OPERAND
Unconditional Jump
Instruction - JMP
SHORT-LABEL
A short jump
displacement is a
distance represented by
a one-byte signed
number whose value
ranges between +127
and -128. A negative
displacement (80 to FF)
means jump backward
and A positive
displacement (01 to 7F)
means jump upward.
NEAR-LABEL
Unconditional Jump
Instruction - JMP
REGPTR16
MEMPTR16
Unconditional Jump
Instruction - JMP
FAR-LABEL
MEMPTR32
it signifies an
intersegment jump.
Examples:
Intrasegment
Jump
(Relative, short-label, jump forward)
Examples:
Intrasegment
Jump
(Relative, short-label, jump forward)
Examples:
Intrasegment
Jump
(Relative, near-label)
Examples:
Intrasegment
Jump
(Indirect, Regptr16)
Examples:
Intrasegment
Jump
(Indirect, Memptr16)
Examples:
Intrasegment
Jump
(Indirect, Memptr32)
Examples:
Intrasegment
Jump
(Relative, short-label, jump
backward)
Facts:
Unsigned Numbers
Signed Numbers
Flags
Flags
Example:
Iteration Controls
LOOP
It is a combination of decrement CX and JNZ.
It transfers control to the target location while
CX <> 0. If CX becomes 0, the next
sequential instruction is executed.
Iteration Controls
LOOPE/LOOPZ
It decrements CX by 1 and transfers control to
the target location while CX <> 0 and ZF = 1.
If CX = 0 or ZF = 0, the loop is terminated
and the instruction following loop is executed.
Iteration Controls
LOOPNE/LOOPNZ
It decrements CX by 1 and transfers control to
the target location while CX <> 0 and ZF = 0.
If CX = 0 or ZF = 1, the loop is terminated
and the instruction following loop is executed.
Iteration Controls
LOOPNE/LOOPNZ
It decrements CX by 1 and transfers control to
the target location while CX <> 0 and ZF = 0.
If CX = 0 or ZF = 1, the loop is terminated
and the instruction following loop is executed.
Iteration Controls
JCXZ
It transfers control to the target operand if CX
is 0.
Examples:
Examples: