in CO and Architecture recategorized by
3,054 views
0 votes
0 votes

A sequence of two instructions that multiplies the contents of the DE register pair by 2 and stores the result in the HL register pair (in 8085 assembly language) is:

  1. XCHG and DAD B

  2. XTHL and DAD H

  3. PCHL and DAD D

  4. XCHG and DAD H

in CO and Architecture recategorized by
3.1k views

1 Answer

–3 votes
–3 votes
ans b)

2 Comments

XTHL instruction exchanges content of top of stack with the HL register pair. But in question, there is nothing related to top of stack.

Correct answer would be D.

XCHG   (exchange content of DE with HL register pair)

DAD H ( add content of HL with HL register pair and store the result back in HL register pair)
1
1
ans is D
0
0