| Name | Base | Digits |
|
Binary Octal Decimal Hexidecimal |
2 8 10 16 |
0 1 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 A B C D E F |
Example:
1101001101010100
Lets rewite that as
1101 0011 0101 0100
So it is easier to view.
Now lets decode it....
Digits
1 Direct/Indirect addressing
2- 4 Operation
5- 8 First Value
9-12 Second Value
13-16 Destination
So this may mean....
Using direct accessing mode, add register 3 to 5 and store the value in register 4.
So looking at the number 1101001101010100 its really hard to tell what is ment, however
if I write that same number in Hexidecimal, I get D354 which is a lot easier to read
and tells me a few things, | Decimal | Binary | Octal | Hexidecimal |
|
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 |
000 001 002 003 004 005 006 007 010 011 012 013 014 015 016 017 020 021 |
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 |
Decimal: 56
Binary : 0111000b
Octal : x70 or 38o
Hex : 0x38 or 38h
Ok, so now we can convert between Decimal, Binary, Octal and Hexidecimal. When converting decimal
places, however, you start from the left and divide the binary number into groups of 3 or 4. So
basiclly you start at the decimal point and move out.