Vous êtes sur la page 1sur 2

Microcomputer Architecture

Number Systems Worksheet

1 Convert the following as indicated answers

1 10110 to decimal 22
2 0001001 to decimal 9
3 11111110 to decimal 254
4 10101010 to decimal 170
5 010111 to decimal 23
6 1111110 to decimal 126
7 1111 to decimal 15
8 73 to binary 1001001
9 87 to binary 1010111
10 178 to binary 10110010
11 123 to binary 1111011
12 48 to binary 110000
13 376 to binary 101111000
14 72 to Hex 4816
15 874 to Hex 36A16
16 64 to Hex 4016
17 53241 to Hex CFF916
18 3616 to decimal 5410
19 3E16 to decimal 6210
20 C516 to decimal 19710
21 2BF16 to decimal 70310
22 D316 to decimal 21110
23 AB16 to binary 10101011
24 11116 to binary 100010001
25 8A16 to binary 10001010
26 A316 to binary 10100011
26 FAA16 to binary 111110101010
27 BED16 to binary 101111101101
28 1011 to Hex B16
29 11110011 to Hex F316
30 10110011 to Hex B316
31 101011 to Hex 2B16
32 1100011 to Hex 6316
33 1010101 to Hex 5516
34 10001010100111 to Hex 22A716

ee_hard\numsys1.doc (With thanks to Duncan for supplying the really nasty problems)
Microcomputer Architecture

Binary Arithmetic
2 Add the following binary numbers

a 1001111 b 1001110 c 101100


+ 10111 + 10111 + 10111

d 110101001 e 1110111 f 10000011


+ 11011110 + 110011 + 1111111

3 Subtract the following binary numbers

a 1001111 b 1001110 c 101100


- 10111 - 10111 - 10111

d 110101001 e 10000000 f 1000011


- 11011110 - 1111111 - 111111

Hexadecimal Arithmetic
4 Add the following Hexadecimal numbers

a 728 b F466 c AAAB d 1ABFE


+ F8 + A22 + BBA + BFFF

5 Subtract the following Hexadecimal numbers


a 728 b F466 c AAAB d 1ABFE
- F8 - A22 - BBA - BFFF

6 Calculate the amount of memory taken up by a program starting at hexadecimal address 9B889
F222 and ending at address AAAAA.

Answers
Question

2 3 4 5

a 1100110 111000 820 630

b 1100101 110111 FE88 EA44

c 1000011 10101 B665 9EF1

d 1010000111 11001011 26BFD EBFF

e 10101010 1

f 100000010 100

ee_hard\numsys1.doc (With thanks to Duncan for supplying the really nasty problems)

Vous aimerez peut-être aussi