Sunteți pe pagina 1din 1

01

Perform subtraction on the given unsigned binary numbers using the 2's comple:e~:
l . l B the subtrahend. Where the result should be negative, find its 2's complement an a ix a
minus sign.
(a) l0010 - 11001 (b) 1001 -101000
(c) 10011 - LOOOl (d) 11011010 - lOOlOJ 1
. . . . . d ·t d f O rm· +9 286 and +801.
1.19 '· l11e followmg decimal numbers are shown m s1gne -magm u e · , .
Convert them to signed-l0's-complement form and perform the following operations
(note that the sum is + 10,627 and requires five digits and a sign).
(a) (+9,286) + (+801) (b) (+9,286) + (-801)
(c) (- 9,286) + (+801) (d) (-9,286) + ( - 801)
1.20 Convert decimal +49 and +29 to binary. using the signed-2 's-complement repre_sentation
and enough digits to accommodate the numbers. Then perform the binary equivalent ~f
( + 29) + (-49), (-29) + ( +49) , and (-29) + (-49). Convert the answers back to deci-
mal and verify that they are correct.
1.21 If the numbers ( +9,742) 10 and ( +641) 10 are in signed-magnitude format, their sum
is ( +10,383) 10 and requires five digits and a sign. Convert the numbers to signed-lO's-
complement form and find the following sums:
(a) ( +9,742) + ( +641) (b) ( +9,742) + (-641)
(c) (-9.742) + (+641) (d) (-9,742) + (-641)
1.22 Convert decimal 9,045 and 337 to both BCD and ASCII codes. For ASCII, an even parity
bit is to be appended at the left.
1.23 Represent the unsigned decimal numbers 8124 and 8127 in BCD, and then show the steps
necessary to form their sum.
1.24 For_~ ulate a weighted binary code for the decimal digits by using the following weights:
(a) ··· 6, 3, 1, 1 (b) 6, 4, 2, 1
1.25 Represent the decimal number 2231 in (a) BCD, (b) excess-3 code (c) 2421 d d
( d) 6311 code. ' co e , an
1.26 Find _the 9's cm_npleme,nt of the decimal number 2,231 and express it in 2421 code. Show
th~t the result 1s the l s c~mplement of the answer to ( c) in Problem l.2S. · - _
strates that the 2421 code is self-complementing. This demon
1.27 A ssign a binary code in some orderly manner to the 52 l · . .
number of bits. P aymg cards. Use the minimum
1.28 Th e message " Pass 0.12 " is to be sent via communication . .
th e message should be encoded into a seven-bit ASCII hn~. For ~his, each character of
~pace: Each AS CII encoded character should b ti code mcluding the period and the
,t. Wnte th e expression for th e message sent. e 1en encrypted by adding binary 101 to
1.29 Decode th e followin g AS C II cod e ·
1001101 1101001 ] 1000111] ]00101101 -
1.30 Thcfoll o wing isas trin g. ofASCII- h ll11110011110lllft ll00110]1]0100
h •. d · c aracte rs wh b· ·
dr~; . e~1~n ~I. for co~pactn ess: 47 2E SC 42 CFC;~ it patterns have been converted intc
g s, t e lef tm os t i s a parity bit Th . . C C5. Of the eight bits in .
(a) Co nve rt th e strin g to bit fon~ , e re ma111111g bits are the ASCII code each pair o 1
( b ) Dete:: rmin c th e parit - 'd · and decode the ASCII. .
y use . odd or eve n?

S-ar putea să vă placă și