GATE 2016 EC – Question 54
In an 8085 system, a PUSH operation requires more clock cycles than a POP operation. Which one of the following options is the correct reason for this?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) The stack pointer needs to be pre-decremented before writing registers in a PUSH, whereas a POP operation uses the address already in the stack pointer.
Explanation
In the 8085, a PUSH first decrements the stack pointer and then writes the two bytes of the register pair. A POP simply reads from the address already in the stack pointer and then increments it. The extra pre-decrement step is what makes PUSH take 12 clock cycles against 10 for POP.