Home » Microprocessor » Advanced Microprocessors » Question

Advanced Microprocessors

  1. Consider the sequence of 8085 instructions given below—
    LXI H, 9258
    MOV A, M
    CMA
    MOV M, A
    Which one of the following program is performed by this sequence?
    1. Contents of location 9258 are moved to the accumulator
    2. Contents of location 9258 are compared with the contents of the accumulator
    3. Contents of location 8259 are complemented and stored in location 8529
    4. Contents of location 5892 are complemented and stored in location 5982
Correct Option: A

LXI H, 9258 H ← Store the location in HL register pair

MOV A, M ← Store data on address 9258 H moved to accumulator
CMA ← Complement the content of A.
MOV M, A ← Complement data move to 9258 memory location.
So, the best option is (A) as data is moved from memory location 9258 H to the accumulator.



Your comments will be displayed only after manual approval.