INTRODUCTION TO MICROPEOCESSOR
MODEL OF MICROPROCESSOR
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Push
|
|
Pop
|
|
Return
|
|
All of the above
|
Detailed explanation-1: -There are two operations of the stack they are: PUSH operation and POP operation.
Detailed explanation-2: -PUSH and POP instruction in 8085 microprocessor: In the 8085 microprocessor, when the PUSH instruction is executed the stack pointer register is decremented by two and when the POP instruction is executed the stack pointer is incremented by two respectively.
Detailed explanation-3: -PUSH operation a) decrements SP b) increments SP c) decrements SS d) increments SS Answer: a Explanation: Each PUSH operation decrements the SP ( Stack Pointer) register.
Detailed explanation-4: -RSTn: Restart instruction is also a subroutine that jumps on the execution of the instruction. So, changes the contents of the stack pointer.
Detailed explanation-5: -The stack pointer–also referred to as the extended stack pointer (ESP)–ensures that the program always adds data to the right location in the stack. The stack stores data from the top down, following a last in, first out (LIFO) data structure.