Subtracting Hex Numbers
- If the second digit is greater than the first, borrow 16 from preceding digit.
F9F | (8 from 15 = 7) | |
- | 2B8 | (11 from 25 (9+16) = 14(E)) |
(2 from 4 (5-1) = 2) | ||
= | 2E7 |
Subtract F88 – 9B8.
F88 | (8 from 8 = 0) | |
- | 9B8 | (11 from 24 (8+16) = 13(D)) |
(9 from 14 (15-1) = 5) | ||
= | 5D0 |
Related topics:
Counting in Decimal, Binary, Hexadecimal | Binary Addition | Binary Subtraction | Hex Addition | Hexadecimal to Decimal Conversion
List of topics: Microcomputer
No comments:
Post a Comment