Hexidecimal, CPU, and the Toy Computer (Week 4) Flashcards
Definition : Byte
A byte is a sequence of 8 bits
It encodes 256 distinct values (0 to 255)
Each distinct value represents a unique sequence of 8 bits
Definition : Hexidecimal Numbers
Hexadecimal numbers use 16 symbols per digit: numerals 0-9 and letters A-F (base-16).
Why use hexadecimal?
Because binary numbers rapidly grow too large to be read effectively by humans, e.g. 2021(decimal) equals 111 1110 01012(binary)
To represent binary numbers in a compact format, hexadecimal numbers are particularly suitable
How many bits is one Hexidecimal digit?
1 hexadecimal digit represents exactly 4 binary digits (no more, no less)
Convert Hexidecimal to Decimal :
A
10
Convert Hexidecimal to Decimal :
B
11
Convert Hexidecimal to Decimal :
C
12
Convert Hexidecimal to Decimal :
D
13
Convert Hexidecimal to Decimal :
E
14
Convert Hexidecimal to Decimal :
F
15
Convert Hexidecimal Digits to Bits :
1
0001
Convert Hexidecimal Digits to Bits :
7
0111
Convert Hexidecimal Digits to Bits :
3B
00111011
Convert Hexidecimal to Decimal :
4B
75
Convert Hexidecimal to Decimal :
A7
167