You are on page 1of 2

# Cairo University Microprocessors

## Faculty of Engineering Second year

Elec.And Comm. department Fall 2007

Sheet 1 (Revision)
1. Convert the following decimal integers into binary, octal, and hexadecimal:
a) 23 b) 107 c) 1238 d) 92 e) 173
2. Convert the following decimal numbers into binary, octal, and hexadecimal:
a) 0.625 b) 0.00390625 c) 0.62890625 d) 0.75 e) 0.9375
3. Convert the following binary numbers into decimal:
a) 1101.01 b) 111001.0011 c) 101011.0101 d) 111.0001
4. Convert the following octal numbers into decimal
a) 234.5 b) 12.3 c) 7767.07 d) 123.45 e) 72.72
5. Convert the following hexadecimal numbers into decimal:
a) A3.3 b) 129.C c) AC.DC d) FAB.3 e) BB8.0D
code (BCH):
a. 1100 0010
b. 0001 0000 1111 1101
c. 1011 1100
d. 1000 1011 1010
8. Convert the following binary into both one’s and two’s complement forms:
a. 0111 0111
b. 1000 0000
c. 1010 1100
d. 1010 1111
9. Convert the following decimal numbers into 8-bit signed numbers:
a) +32 b) -12 c) +100 d) -92
10. Convert the following decimal numbers into signed binary words:
a) +1000 b) -120 c) +800 d) -3212
11. Convert the following binary numbers into signed decimal numbers:
a) 10000000 b) 00110011 c) 10010010 d) 10001001

1/2
12. Convert the following decimal numbers into both packed and unpacked BCD
forms:
a) 102 b) 44 c) 301 d) 1000
13. Convert the following decimal numbers into single-precision and double-
precision floating-point numbers then write the result in binary and HEX
formats:
a) +1.5 b) -10.625 c) +100.25 d) -1200
14. The following numbers represent single-precision floating-point numbers.
Please, convert each number into its decimal equivalent:
a. 0 10000000 11000000000000000000000
b. 1 01111111 00000000000000000000000
c. 0 10000010 10010000000000000000000
d. ED960000H
e. 43F90000H
15. The following numbers represent double-precision floating-point numbers.
Please, convert each number into its decimal equivalent:
a. 4AB5890000000000H
b. 982AE10000000000H

## 16. Find the result for the following hexadecimal-numbers operations:

a. 2CH+3FH
b. F000H+12FFH
c. FE90H-5CC0H

For each operation, show the value stored in the carry flag.

17. Define the directives DB, DW, DD, and DQ. Then or otherwise, illustrate the
meaning of the following statements: