Binary Concepts
Binary Concepts
- Octal to Binary:
- Binary to Octal:
Group binary digits into groups of 3 (starting from the right). Add leading zeros if needed,
- Hexadecimal to Binary:
- Binary to Hexadecimal:
Group binary digits into groups of 4 (from the right), then convert each group to its hexadecimal equivalen
- Addition:
-0+0=0
-0+1=1
- 1 + 1 = 10 (carry 1)
- 1 + 1 + 1 = 11 (carry 1)
- Subtraction:
-0-0=0
-1-0=1
- 0 - 1 = 1 (borrow 1)
-1-1=0
- Addition:
11010101
+ 01101011
- Subtraction (A - B):
11010101
+ 10010101
- Signed Numbers: Use the most significant bit (MSB) to indicate the sign (0 = positive, 1 = negative).
8. De Morgan's Laws
9. ASCII Code
The American Standard Code for Information Interchange (ASCII) assigns a unique 7-bit code to character
- Outputs:
- Sum (S = A XOR B)
- Carry (C = A * B)
- Two half adders: HA1 for inputs A, B; HA2 for S1 and Cin.
- Outputs: