Explain the Memory stack organization of 16 locations of stack( 0 to 15). take the initial value of the
stack pointer is SP = 0E in Hex. Explain the following push and pop instructions through the Memory
stack organization diagram.
(1) PUSH R5 WHERE R5 = XX in Hex
(2) POP R4 WHERE R4 = (XX + 3 ) Hex for example roll no 64 is having the data in R5 = 64
Hex and R4 is ( 64+3 = 67 Hex) [5 marks]
Comments
Leave a comment