Sie sind auf Seite 1von 1

Lecture on Binary numbers:

a- What is the total number of binary codes that can be represented using 8-bit binary numbers?

b- What is the number of (+)ve number s and (-) numbers that can be represented (coded) with 8-bit
binary numbers?

c- What is the twos complement of the binary number 0 1 1 1 1 1 1 1?

d- ADD the two signed binary numbers below. Write the sum (show any carry-out bit). Explain if there is
an overflow condition and explain why or why not.

0101 0101
1110 1010
-----------------------

1101 0101
1110 1010
-----------------------

SUM:
Overflow?
Why:

FromTextBook Chapter 1
e- What is the largest unsigned integer that can be represented in 7 bits?

f- Convert 0xF4 to binary

g- Covert 0xF4 to Octal

h- Compute 0xB2 + 0x9F and give the result in hex

i- Compute 0xB2 0x9F and give the result in hex

0111 0101
0110 1010
-----------------------

Das könnte Ihnen auch gefallen