25 Show the stack for the following code 000B 120300 LCALL D
25. Show the stack for the following code:
000B 120300 LCALL DELAY
000E 80F0 SJMP BACK ;keep doing this
0010
0010 ;_________ this is the delay subroutine
0300 ORG 300H
0300 DELAY:
0300 7DFF MOV R5, #0FFH ;R5 = 255
0302 DDFE AGAIN: DJNZ R5, AGAIN ; stay here
0304 22 RET ; return
Solution
the stack for the above code is as follows:
000B 120300
000E 80F0
0300 ORG 300H
0300 replaced with 255
0302 DDFE
0304 22
