In article <[EMAIL PROTECTED]>, Robert Newson
<[EMAIL PROTECTED]> writes
>Try using hexadecimal (base 16) - it makes life much easier:
>
>Take each set of 4 bits (binary digits) and convert to a number in range
>0-15, then substitute A-F for 10-15.
>
>I've used this above, using the C format of preceeding it by '0x' to
>indicate a hex' number. My machine code monitor and assembler (from
>Computer One) both require hex' numbers to be preceeded by a dollar ($).
>
>eg 1110 1100 1001 0010 (converting each 4 bits) => 14 12 9 2 -> 0xEC92
>or $EC92
Having done a lot of computer control - with an 8 bit computer, or
programmable cards. I can echo that 'nibbles' ( half a byte ! ) are
easier to deal with when you are commanding robots, etc.
It also really matters if you get it wrong ( ! ) as a binary 1 sent
usually does something, and a binary 0 does not.
The power of 2 is used as the series - 1,2,4,8,16,32,64,128
Which is OK, but you avoid the 'big numbers' of 16,32,64,128 if you
think of it as the 'nibbles', and hence only 0-15 decimal to deal with.
Which easily converts into hexadecimal, which uses the letters A to F,
after reaching 9 in numbers.
--
Malcolm Cadman