Microprocessor lecture 10
Microprocessor lecture 10
location.
This instruction does not affect any flag.
a) JMP
The JMP instruction makes the microprocessor take its next
bit register.
A direct jump is to a label.
instruction
Example
MOV BX, 0001H
SUB AX, AX
REPEAT ADD AX, BX
JMP REPEAT
In this program, AX will be incremented by 1 continuously
repeated addition
Loops and Jumps 4
b) LOOP
The loop instruction is a special form of jump instruction with a
sequence of instructions.
This is referred to as looping.