Explain the Register stack organization of 32 locations of the stack (0 to 31 ). take the initial value of the stack pointer is SP = 09 in Hex. Explain the following push and pop instructions through the Register stack organization diagram.
(1) PUSH R2 WHERE R2 = XX in Hex
(2) POP R1 WHERE R1 = (XX + 5 ) in Hex where XX is your class roll no , for example roll no 64 is having the data in R2 = 64 Hex and R1=( 64+5 = 69 Hex)
The answer to your question is provided in the image:
Leave a comment