in reply to
Re^4: When I see "10", I think:
in thread When I see "10", I think:
If the left-most hex digit is 8 or higher, the high bit is set.
Which doesn't help you read the next 15 bits.
That's all you got?
You dig up an old thread to say: "Using octal for 16-bit values is that it isolates bit 15 nicely."
And when you are shown that isolating the high bit in hex is trivial; you then say; "Oh, but it's not about the high bit; its about the other 15".
Were you bored and just came looking for a argument?
Well here it is. Translating hex nibbles to binary is child's play. Every programmer worthy of the name does in their head without thinking.
The advantage over octal is obvious. (hint:byte alignment).
You didn't show how to isolate anything. Don't be an asshole once that's pointed out.
Isolating in octal:
135753 => 1 35753
Isolating in hex:
BBEB => 1 3BEB
Not particularly hard, but it's still more work than the lack of it in octal.
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (1 votes),