Computer Organization Architecture - Topic 2
Computer Organization Architecture - Topic 2
NUMBERING
SYSTEMS
REPRESENTATION
TCS1063: COMPUTER
ORGANIZATION & ARCHITECTURE
NUMBERING SYSTEMS
Data
• Binary number and other binary-coded
information
Information
• Data that has been processed or organized
• Data been processed into a meaningful and
useful form
• Data types
Examples 1:
Convert 6CF16 into decimal number
= (6 X 162) + (C X 161) + (F X 160)
= (6 X 162) + (12 X 161) + (15 X 160)
= 1536 + 192 + 15
= 174310
Decimal Into Binary Conversion
Example 1: Convert 4410 into binary number
2 44 0 LSB 44 ÷ 2 = 22 balance 0
2 22 0 22 ÷ 2 = 11 balance 0 4410 = 1011002
2 11 1 11 ÷ 2 = 5 balance 1
2 5 1 5 ÷ 2 = 2 balance 0
2 2 0 2 ÷ 2 = 1 balance 1
2 1 1 MSB 1 ÷ 2 = 0 balance 1
0
Example 2: What is the value of 37.687510 in binary?
37.6875 is a decimal number with decimal points.
37 . 6875
0 3710 = 1001012
b. Convert .6875
Decimal Into Octal Conversion
Example: Convert 20010 into octal number
8 200 0
8 25 1
20010 = 3108
83 3
0
Decimal Into Hexadecimal Conversion
Example: Convert 7710 into hexadecimal number
16 77 13 = D
7710 = 4D16
16 4 4
0
Conversion Of Binary Into Octal
Example 1: Convert 10111012 into Octal number.
Grouping the binary number into a group of 3 bits
10111012 = 1358
Example 2: Convert 10101.112 into Octal number
Grouping the binary number into a group of 3 bits
Add 0 to
10 101 .110 complete
2 5 .6 the group of
three bits
10101.112 = 25.68
Conversion Of Hexadecimal Into Binary
Example 1: Convert 6CF16 into Hexadecimal number.
Convert the relevant digit into the group of 4 binary digits
6 C F
12 15
010 110
268 = 0101102
Example 2: Convert 22.68 into Binary number
Convert the relevant digit into the group of 3 binary digits
2 2 .6
22.68 = 010101.1102
Conversion Of Binary Into Hexadecimal
Example: Convert 0110110011112 into Hexadecimal number
Grouping the binary number into a group of 4 bits
12 15
6 C F
0110110011112 = 6CF16
Conversion of Octal into Hexadecimal
Example: Convert 358 into Hexadecimal number
a. Convert the relevant digit into the group of 3 binary digits
3 5
011 101
358 = 0111012
b. Grouping the binary number into a group of 4 bits
00 01 1101
Add 00 to
complete the
group of four 13
bits
D
1
358 = 1D16
Conversion Of Hexadecimal Into Octal
Example: Convert 1D16 into Octal number
a. Convert the relevant digit into the group of 4 binary digits
1 D
13
0001 1101
1D16 = 000111012
b. Grouping the binary number into a group of 3 bits
0 00 011 101
Add 0 to
complete the
group of three
bits 0 3 5
1D16 = 358
COMPLEMENT
Used in digital
Complement computers
Simplifying the
subtraction operation
Purpose
Logical manipulation
1’s Complement
Types
2’s Complement
1’s Complement 2’s Complement
Provides an easier way to
Inversion of binary bits subtract numbers using
addition