edited by
2,511 views
0 votes
0 votes

Match the following $8085$ instructions with the flags $:$

$\begin{array}{}  {} & {\textbf{List – I}}  & {} & {\textbf{List – II}} \\  \text{a.} &  \text{XCHG} & \text{i.} &  \text{Only carry flag is affected }\\  \text{b.} & \text{SUB} & \text{ii.} & \text{No flags are affected}\\  \text{c.} & \text{STC} & \text{iii.} & \text{All flags other than carry are affected} \\  \text{d.} & \text{DCR} & \text{iv.} & \text{All flags are affected}\\  \end{array}$

$\textbf{Codes :}$

  1. $\text{a-iv, b-i, c-iii, d-ii}$
  2. $\text{a-iii, b-ii, c-i, d-iv}$
  3. $\text{a-ii, b-iii, c-i, d-iv}$
  4. $\text{a-ii, b-iv, c-i, d-iii}$
edited by

1 Answer

2 votes
2 votes

XCHG: - Exchange H and L with D and E  No flag is affected in this instructions

SUB  : Subtract All flags(CY,S,Z,AC,P) are affected by subtarct operation

STC  :  Set carry flag to   1 so Only carry flag is affected

DCR   :   Decrement  All flags other than carry flag are affected

Hence ans is D

Answer:

Related questions

1 votes
1 votes
1 answer
1
makhdoom ghaya asked Jul 24, 2016
6,089 views
Specify the contents of the accumulator and the status of the $S, Z$ and $CY$ flags when $8085$ microprocessor performs addition of $87 H$ and $79 H$. $11, 1, 1, 1$$10, 0...
1 votes
1 votes
2 answers
2
makhdoom ghaya asked Jul 24, 2016
8,489 views
How many times will the following loop be executed ? LXI B, 0007 HLOP : DCX B MOV A, B ORA C JNZ LOP $05$ $07$ $09$$00$
2 votes
2 votes
1 answer
3
makhdoom ghaya asked Aug 2, 2016
1,576 views
Which of the following versions of Windows O.S. contain built-in partition manager which allows us to shrink and expand pre-defined drives ?Windows Vista Windows $2000$Wi...
2 votes
2 votes
1 answer
4
makhdoom ghaya asked Jul 25, 2016
3,201 views
Match the following $:$$\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{Cavalier} & \text{i.} & \text{The direction of projection...