Chapter 0 Exercise Set 0: Decimal, Binary, Octal and HexΒΆ
We will adopt the convention from the Intel 8080 Assembly Language Programming
Manual, and append B to
a number to indicate binary, D for decimal, Q for octal (the manual
also uses O, but that is visually difficult to distinguish from 0,
zero, so we will avoid that), and H for hexadecimal.
Note
When the base a number can be readily inferred from context, these suffixes will often be omitted.
Convert each of the following octal values to 8-bit binary strings.
072Q200Q107Q303Q072Q111Q303Q
Convert each of the following octal from the previous exercise to hexidecimal.
Convert each of the following binary values to octal, hex and decimal.
00 111 010B11 111 111B01 000 000B00 100 100B11 000 011B
Convert each of the following hex values to binary, octal, and decimal.
13H2AH3AH76HC3H