All Exams Test series for 1 year @ ₹349 only
Question

In the 8085 microprocessor, what happens to the Stack Pointer after execution of PUSH instruction?

The correct answer is

Decremented by 2

The stack in the 8085 is a region of RAM used for temporary storage of register-pair contents and return addresses, and it grows downward (toward lower addresses). The Stack Pointer (SP) is a 16-bit register that always points to the top of the stack.

The PUSH rp instruction saves a 16-bit register pair (such as B-C, D-E, H-L, or PSW) onto the stack. Because each register pair is two bytes, the operation proceeds in two steps:

  1. SP is decremented by 1, and the high-order byte of the register pair is stored at the address now pointed to by SP.
  2. SP is decremented by 1 again, and the low-order byte is stored at the new SP location.

After both steps, the net change is that SP has been decremented by 2, which is the correct answer. This reflects the fact that two bytes were pushed and the stack top moved down by two addresses.

Why the other options are wrong:

  • Incremented by 2 is exactly what happens during a POP (which removes two bytes and moves the pointer back up), the inverse of PUSH.
  • Incremented by 1 would correspond to storing only a single byte upward, which does not match a two-byte push on a downward-growing stack.
  • Unchanged is impossible, since PUSH must move the pointer to make room for the two bytes it stores.
Was this answer helpful?

Similar Questions

  1. In the 8085 microprocessor, if SP = 3FFFH and memory contains: 

    3FFEH = 20H, 

    3FFFH = 20H, 

    4000H = 10H, 

    4001H = 10H.

     After executing POP H, what will be the contents of HL?


Important Questions from Architecture of 8085

  1. What is the maximum addressing capability of Intel 8085?

  2. Which of the following interrupts is non-maskable in 8085 microprocessor?

  3. In a microprocessor, the term 'pipelining' refers to

  4. The clock frequency of an 8085 microprocessor is 5 MHz. If the time required to execute an instruction is 1.4 μs, then the number of T-states needed for executing the instruction is

  5. In an 8085 microprocessor, which one of the following instructions changes the content of the accumulator?

Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE Prev. Yr. Paper (CBT 1 + CBT 2) Test Series
290 Tests 5 Tests Free
4474 Attempts
4.3(88)
English

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App