The content of the registers are R 1 = 25 H , R 2 = 30 H and R 3 = 40 H . The following machine instructions are executed:
It is a stack (LIFO) problem.
Initial values:
Step 1: PUSH operations
We push in this order:
Stack:
Then:
Stack:
Then:
Stack:
The last value pushed is the first value popped.
Step 2: POP operations
gets the top value:
Then:
gets:
Then:
gets:
Therefore,
Answer: (a)