Home » Microprocessor » Advanced Microprocessors » Question

Advanced Microprocessors

  1. The following program is run on an 8085 microprocessor,
    Memory address in Hex Instruction
    2000 LXI SP, 1000
    2003PUSH H
    2004 PUSH H
    2004 PUSH D
    2005 CALL 2050
    2008 POP H
    2009HLT

    As the completion of execution of the program, the program counter of the 8085 contains ……, and the stack pointer contains …………
    1. 2050, OFFC
    2. 2251, OFFC
    3. 1025, OCCF
    4. 1125, OCCF
Correct Option: A

LXI SP0100 H
PUSHH
PUSHD
CALL2050
POPH
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.



Your comments will be displayed only after manual approval.