The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
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

asked in CO & Architecture by Veteran (59.5k points)
retagged by | 590 views

1 Answer

–3 votes
ans b)
answered by Loyal (5.2k points)
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)
ans is D

Related questions

0 votes
0 answers
asked Oct 8, 2014 in CO & Architecture by Kathleen Veteran (59.5k points) | 191 views
0 votes
0 answers
asked Oct 4, 2014 in CO & Architecture by Kathleen Veteran (59.5k points) | 218 views

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

39,513 questions
46,666 answers
57,487 users