Professional Documents
Culture Documents
Register value
55 20
57 42
59 5
5. Analyse the assembly program and find the time delay for the Delay
subroutine shown in the figure below if the system has 8051 with
XTAL of 13MHz. Consider the overhead generated by loops repetition.
(7)
ORG 30H
Delay: MOV R5, #5
Back: MOV R4, #55
Again: MOV R3, #155
Here: NOP
NOP
DJNZ R3, Here
DJNZ R4, Again
DJNZ R5, Back
RET