Home » Microprocessor » Advanced Microprocessors » Question

Advanced Microprocessors

  1. The following program is written for an 8085 microprocessor to add two bytes located at memory addresses 1FFE and 1FFF


    LXI H,1FFE
    MOVB, M
    INRL
    MOVA, M
    ADDB
    INRL
    MOVM, A
    XORA

    On completion of the execution of the program, the result of addition is found—
    1. in the register A
    2. at the memory address 1000
    3. at the memory address 1F00
    4. at the memory address 2000
Correct Option: D

Let 01 H store in memory location 1 FFE and 02 H Store in 1 FFF

On completion of the execution of the program, the result of addition is found at the memory address 2000H.
Hence alternative (D) is the correct choice.



Your comments will be displayed only after manual approval.