Professional Documents
Culture Documents
Lab 7
Lab 7
Program counter
Points to the address of the next instruction to be
executed.
As each instruction is executed, the program counter is
incremented
Org and End (Rev)
MOV destination, source
ADD A, source
UnConditional Loop
Repeating a sequence of instructions is called a loop
Unconditional Loop action is performed by
Sjmp label
Conditional Loop
Repeating a sequence of instructions is called a loop
Loop action is performed by
DJNZ reg, Label
Steps
The register is decremented
If it is not zero, it jumps to the label
At start of loop the register is loaded with the value for the number
of repetitions
Delay of
700 times
520000 times
930000 times
Conditional Jump Instructions
Determine