The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
636 views

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.8k points)
retagged by | 636 views

1 Answer

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

Related questions

0 votes
0 answers
2
asked Oct 8, 2014 in CO & Architecture by Kathleen Veteran (59.8k points) | 201 views
0 votes
0 answers
3
asked Oct 4, 2014 in CO & Architecture by Kathleen Veteran (59.8k points) | 232 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

47,241 questions
51,471 answers
178,552 comments
66,755 users