edited by
1,138 views
1 votes
1 votes

Consider the following instructions of an 8085 microprocessor
MVI D, 6 EH
MVI E, 5 DH
MOV A, D
ADD E
If above sequence of instructions are executed, then the value of carry flag (CY) and auxiliary carry (AC) flag respectively will be

  1. CY = 0, AC = 0
  2. CY = 0, AC = 1
  3. CY = 1, AC = 1
  4. CY = 1, AC = 0
edited by

1 Answer

Best answer
3 votes
3 votes

Auxillary flag is set when we have carry out from the lower nibble to higher nibble..And carry flag is set when carry out from MSB..So we add the binary equivalent of the given hexadecimal numbers.

     0110  1110

+   0101  1101

---------------------

     1100   1011

We have done this addition keeping in mind the carries..

So here clearly there is no carry out of MSB but carry out from lower nibble to higher nibble..

So , CY =  0  , AC = 1

Hence B) option is correct..

selected by

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
2
jatin khachane 1 asked Jan 26, 2019
420 views
Consider the unpipelined machine with $10$ nanoseconds clock cycles. It uses four cycles for ALU operations and branch whereas 5 cycles for memory operation. Assume that ...