1. Engineering
  2. Electrical Engineering
  3. a show the stack pointer and contents of the stack...

Question: a show the stack pointer and contents of the stack...

Question details

a) Show the stack pointer and contents of the stack when the instruction MOV R5,#0FFH is executed. Assume SP is initially 7.

000B 120300       LCALL DELAY

000E   80F0           SJMP BACK ; keep doing this

0010

0010       ;---------------------- this is delay subroutine

0300                       ORG 300H

0300                        DELAY:

0300 7DFF               MOVE R5, 0FFH ; R5=255

0302 DDFE              AGAIN: DJNZ R5, AGAIN    ; stay here

0304 22                    RET                      ; return

b)  with which address in memory is the label BACK associated?

please explain

thanks,

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution