You are on page 1of 3

Q1) Perform the logic OR & XOR with the two binary string 10011000 and 10101110

10011000
10101110
-------------
10111110
--------------

We have to perform “selective-complement” for Logic XOR

10011000
10101110
-------------
00110110
-------------

Q2) Justify that Micro programmed control better than hardwired control. Also, identify
some situations when hardwired is preferred.
Q3) Consider the process of division of two binary numbers, 10100011 by 1011, specify the
contents of E, A, Q and SC.

Ans:- AQ=10100011
A=1010
Q=0011
B=1011
B`=0100
B`+1=0101

Steps E A Q SC

Shl EAQ 1 0100 0010

E=1 3
Set AßA-B 0 1001 0110

Shl EAQ 1 0110 1100

E=1 2
Set AßA-B 0 1011 1100

Shl EAQ 1 0111 1000

E=1 1
Set AßA-B 0 1100 1000

Shl EAQ 1 1001 0000

E=1 0
Set AßA-B 1 0100 0000

Division of two binary numbers, 10100011 by 1011 are 01000000

Q4) Derive an algorithm in flowchart form for subtracting two fixed point binary
numbers when negative numbers are in signed-1’s complement representation.
Ans:- page 340
Q5) Perform BCD addition and subtraction of 3367 and 566.
Ans :- 9999
- 569
---------
9430
---------

9430
+ 1
---------
9431
---------

Q6) Show that adding B after A+B’+1 restores the original value of A. what is done with
the final Carry.
Ans :-