Professional Documents
Culture Documents
Instruction:
cin
Question 1.
Find the value and the 8-bit representations of the following given numbers.
(a)
(b)
(c)
(d)
(e)
Question 3.
Perform the following 8-bit signed binary number arithmetic and identify over
ow, if any.
(a) 0101 1100 + 1010 1110 (signed-magnitude representations)
(b) 0101 1100 1010 1110 (signed-magnitude representations)
(c) 0101 1100 + 1010 1110 (two's-complement representations)
(d) 0101 1100 1010 1110 (two's-complement representations)
(e) 0101 1100 + 1010 1110 (ones'-complement representations)
(f) 0101 1100 1010 1110 (ones'-complement representations)
1
Suppose that a particular machine uses 8 bits to represent a binary
oating-point number in
scientic notation with the following convention:
bit 7 (1 bit) represents the sign ;
bits 6{4 (3 bits) represent the exponent in excess-3 representation;
bits 3{0 (4 bits) represent the mantissa (with rounding).
Convert the decimal number 12 85 to binary
oating-point number with 4 binary places in
normalized scientic notation (use rounding if necessary), hence nd its representation in that
machine (use rounding if necessary).
S
Question 7.
Perform the following arithmetic and give the answers in binary
oating-point numbers with
8 binary places in scientic notation (use rounding if necessary).
(a) 1 11011001 24 + 1 01010011 22
(b) 1 00000001 23 1 01111011 2 1
: