AhmedNazir

Call

Option 2 : 1100

The correct answer is option 2.

Concept:

To subtract B from A.

Write the expression (A-B) as:

(A - B) = A + (-B) Now (-B) can be written as (2’s complement of B).

The Given data:

An ALU has  8-bit with a 4-bit status register.

C=carry,

S=sign,

Z=zero,

V=overflow. 

A= 1111 0000 

B = 0001 0100

Explanation:

A-B=  A + (2’s complement of  B)

2’s complement of B=1’s complement +1

B = 0001 0100

1’s complement of B= 1110 1011

2’s complement of B= 1110 1100

A + (2’s complement of  B)= 

               A= 1111 0000 

    +         B= 1110 1100

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

           A-B=  1101 1100

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

The last four bits are 4-bit status register= 1100

Hence the correct answer is 1100.