Practice over 1000+ GATE-level questions from this topic!
Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.
The stack pointer of a microprocessor is at A001 At the end of execution of following instructions, the value of stack pointer is _____________
PUSH PSW
X THL
PUSH D
JMP FC70 H
9FFF
9FFD
9FDD
9DFD
PUSH Instruction decrements the content of Stack Pointer by 2.
So, value of Stack Pointer after execution of each instruction is given below,
PUSH PSW SP = 9FFF
XTHL SP = 9FFF
PUSH D SP = 9FFD
JMP FC70 SP = 9FFD
XTHL: exchanges top of stack with HL register pair but Stack Pointer remains same.
JMP shifts the program execution to a new address but Stack Pointer remains same.