Sie sind auf Seite 1von 7

SECTION 6-2

a) 32 = 0 0 1 0 0 0 0 0 =

11011111
1 +
1 1 1 0 0 0 0 0 = -32

b) -14 = 1 1 1 1 0 0 1 0 =

00001101
1 +
0 0 0 0 1 1 1 0 = 14

c) 63 = 0 0 1 1 1 1 1 1 =

11000000
1 +
1 1 0 0 0 0 0 1 = -63

d) -104 = 1 0 0 1 1 0 0 0 =

01100111
1 +
0 1 1 0 1 0 0 0 = 104

e) 127 = 0 1 1 1 1 1 1 1 =

10000000
1 +
1 0 0 0 0 0 0 1 = -127

f) -127 = 1 0 0 0 0 0 0 1 =

01111110
1 +
0 1 1 1 1 1 1 1 = 127

g) 89 = 0 1 0 1 1 0 0 1 =

10100110
1 +
1 0 1 0 0 1 1 1 = -89

h) -55 = 1 1 0 0 1 0 0 1 =

00110110
1 +
0 0 1 1 0 1 1 1 = 55

i) -1 = 1 1 1 1 1 1 1 1 =

00000000
1 +
00000001 =1

j) -128 = 1 0 0 0 0 0 0 0 =

01111111
1 +
1 0 0 0 0 0 0 0 = 128

k) +169 = ?

l) 0 = 0 0 0 0 0 0 0 0 =

11111111
1 +
100000000 =0

m) 84 = 0 1 0 1 0 1 0 0 = 1 0 1 0 1 0 1 1
1 +
1 0 1 0 1 1 0 0 = -84
n) 3 = 0 0 0 0 0 0 1 1 =

11111100
1 +
1 1 1 1 1 1 0 1 = -3

o) -3 = 1 1 1 1 1 1 0 1 =

00000010
1 +
00000011 =3

p) -190 = ?

SECTION 6-3
a) 13 = 0 1 1 0 1
10010
1 +
1

0 0 1 1 = -13

b) -3 = 1 1 1 0 1
00010
1 +
0 0 0 1 1 = +3

c) 123 = 0 1 1 1 1 0 1 1
10000100
1+
1 0 0 0 0 1 0 1 = -123

d) -103 = 1 0 0 1 1 0 0 1
01100110
1+
0 1 1 0 0 1 1 1 = 103

e) 127 = 0 1 1 1 1 1 1 1
10000000
1+
1 0 0 0 0 0 0 1 = -127

f) -128 = 1 0 0 0 0 0 0 0
01111111
1+
1 0 0 0 0 0 0 0 = 128

g) -1 = 1 1 1 1 1 1 1 1
00000000
1+
00000001=1

h) -127 = 1 0 0 0 0 0 0 1
01111110
1+
0 1 1 1 1 1 1 1 = 127
i) 99 = 0 1 1 0 0 0 1 1
10011100
1+
1 0 0 1 1 1 0 1 = -99

j.

-39 = 1 1 0 1 1 0 0 1
00100110
1+
0 0 1 0 0 1 1 1 = +39

SECTION 6-4
a. What range of signed decimal can be represent using 12 bits including the sign bit ?
Answer:
Range of signed decimal represent using 12 bits including the sign bit:
1 0 0 0 0 0 0 0 0 0 0 0 = -212 = -4096

b. How many bits would be required to represent decimal numbers from -32.768 t0 +32.767 ?
Answer:
-32.768 = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = -215
To
+32.767 = 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 = 215
Range -32.768 to + 32.767 have 15 bits

SECTION 6-5
List in order all of the signed numbers that can be represent in five bits using 2s complement !
Answer:
a. 1 0 0 0 1
b. 1 0 0 1 0
c. 1 0 0 1 1
d. 1 0 1 0 0
e. 1 0 1 0 1
f. 1 0 1 1 0
g. 1 0 1 1 1

=
=
=
=
=
=
=

-1
-2
-3
-4
-5
-6
-7

SECTION 6-6

Represent each of the following signed decimal values as an 8-bit signed binary value, then
negate each one..
Answer:
a.

+73 =

01001001
10110110
1+
1 0 1 1 0 1 1 1 = -73

b.

c.

-12 =

11110100

12 =

00001100
1+
11110011

15 =

00001111
11110000
1+
1 1 1 1 0 0 0 1 = -15

d.

-1 =

11111111

1=

00000001
11111110
1+
1 1 1 1 1 1 1 1 = -1

e.

-128 =

10000000

128 =

10000000
01111111
1+
1 0 0 0 0 0 0 0 = -128

f.

127 =

01111111
10000000
1+
1 0 0 0 0 0 0 1 = -127

SECTION 6-7

What is the range of the unsigned decimals values that can be represent in 10 bits? What is the
range of signed decimal values using he same number or bits?
Answer:
a.

Range of the unsigned decimals in 10 bits = 0 to 1023

b.

Range of the signed decimals in 10 bits = -1024 to -1

Das könnte Ihnen auch gefallen