1. For POP, the data transceivers remain in the same direction as for instruction fetch (memory to processor), whereas for PUSH their direction has to be reversed.
  2. Memory write operations are slower than memory read operations in an 8085 based system.
  3. 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.
  4. Order of registers has to be interchanged for a PUSH operation, whereas POP uses their natural order.
4 views

1 Answers

Option 3 : 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.

PUSH  is  pre decremented operation

Since it is 16 bit operation it takes 6 clock cycles for Fetch and decoding operation.

For PUSH operation:

T1

T2

T3

6 clock cycles

3 clock cycles

3 clock cycles

Fetch and  Decode

Write operation

Write operation

 

Total no of clock cycles = 6+3+3= 12 clock cycles

Whereas POP is a post incremented operation and it takes only 4 clock cycles in fetch and decode operation.

For POP:

T1

T2

T3

 4 clock cycles

3 clock cycles

3 clock cycles

Fetch and  Decode

Write operation

Write operation

 

Total no of clock cycles = 4+3+3= 10 clock cycles
4 views

Related Questions