In PUSH instruction, after each execution of the instruction, the stack pointer is

In PUSH instruction, after each execution of the instruction, the stack pointer is
A. incremented by 1
B. decremented by 1
C. incremented by 2
D. decremented by 2
 
Answer: d
Explanation: The actual current stack-top is always occupied by the previously pushed data. So, the push operation decrements SP by 2 and then stores the two bytes contents of the operand onto the stack.
 

Tìm kiếm

Back
Top