-
The following program is run on an 8085 microprocessor,
Memory address in Hex Instruction 2000 LXI SP, 1000 2003 PUSH H 2004 PUSH H 2004 PUSH D 2005 CALL 2050 2008 POP H 2009 HLT
As the completion of execution of the program, the program counter of the 8085 contains ……, and the stack pointer contains …………
-
- 2050, OFFC
- 2251, OFFC
- 1025, OCCF
- 1125, OCCF
Correct Option: A
LXI SP | 0100 H |
PUSH | H |
PUSH | D |
CALL | 2050 |
POP | H |
HALT |
So the Stack pointer contents OFFC. Here we have written CALL Instruction, we dont know the content of subroutine at 2050 H, so the program counter is at the position 2050 H.
Hence alternative (A) is the correct choice.