Professional Documents
Culture Documents
1.1 Data Representation - : 1.1.2 Hexadecimal
1.1 Data Representation - : 1.1.2 Hexadecimal
Numbers 1 1 0 0 0 1
2 2 0 0 1 0
3 3 0 0 1 1
4 4 0 1 0 0
5 5 0 1 0 1
6 6 0 1 1 0
7 7 0 1 1 1
8 8 1 0 0 0
9 9 1 0 0 1
10 A 1 0 1 0
A–F
Letters 11 B 1 0 1 1
12 C 1 1 0 0
13 D 1 1 0 1
14 E 1 1 1 0
15 F 1 1 1 1
HEX F F 0 0 0 0
FF0000 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
Binary 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Binary Conversion
www.yahmad.co.uk
Computer Science
1.1 Data Representation - 1.1.2 Hexadecimal
Denary
Conversion 256 32 14
the Hex position (1, 16, 256 etc) 1 256 1*256= 256
2 16 2*16 = 32
14 1 14*1 = 14
3) Add all of the multiplied
Values
256 + 32 + 14 = 302
www.yahmad.co.uk
Computer Science
1.1 Data Representation - 1.1.2 Hexadecimal
4. 2 / 16 = 0 R0
Multiples of 16
16 32 48 64 80 96 112 128 144 160 176 192
12040 16 752 0 0 7 5 2 8 8
R8
1 12 8 4
16 1 2 0 4 0
752 16 47 4 7 0 0
7 11 R0
16 7 5 2
47 16 2 2 R15 15 F
4
16 4 7
2 16 0 0 R2 2 2
16 2
4096 256 16 1
www.yahmad.co.uk 2 F 0 8
Computer Science
1.1 Data Representation - 1.1.2 Hexadecimal
Represent numbers stored in registers and main memory
as hexadecimal
compared to
Hex E 7 B Binary.
A A 11 B
Hex
12 C
BW 1 0 1 0 0 1 0 1 13 D
Hex A 5 14 E
15 F
www.yahmad.co.uk