2,142 views

2 Answers

Best answer
3 votes
3 votes

The DAD instruction (Double Add) allows 16-bit addition between the HL register pair and any one of the BC, DE, HL, or SP register pairs, putting the result in HL. It takes a single operand which may be B, D, H, or SP. The carry flag is set to indicate overflow is sum exceeds 16 bits. The contents of source register pair is not altered 

so DAD H  performs

HL=HL+HL

Hence ans is B 

DAD D performs 

HL=HL+DE

DAD B performs 

HL=HL+BC 

DAD SP

HL=HL+SP

edited by
1 votes
1 votes

HL is a pair of registers being used in 8085 microprocessor..So together H and L registers comprise of 16 bit operand..

Hence for addition of 16 bit numbers we require separate instruction so we have DAD instruction instead of ADD instruction..Further we are operating on HL pair registers..

Hence B) is the correct answer..

Related questions

0 votes
0 votes
0 answers
1
Anuj1995 asked Aug 22, 2018
417 views
How to solve this type of questions?
0 votes
0 votes
0 answers
2
rahuldb asked Nov 17, 2016
2,119 views
Write the assembly language code segment to evaluate the following arithmetic expression:X=((A+B)*C)/(D-E*F+G*H)Usingi)Stack based organizationii)RISC organization
0 votes
0 votes
0 answers
3
Sanjay Sharma asked Jun 29, 2016
227 views
0 votes
0 votes
1 answer
4
Sourabh Kumar asked Jun 10, 2016
727 views