[aprssig] A funny packet story/joke (The KISS guys will get it)
tburnett at vermontel.net
Wed Nov 9 10:44:19 CST 2005
I never learned C code but the Intel 8080 was very easy to program
in octal..At one time I could do that without going to the book...
That's when computers were really fun...
Curt, WE7U wrote:
>On Tue, 8 Nov 2005, Tad Burnett wrote:
>>Then 377 = 255 = FF ???
>Somehow I infer from your question that you already know the answer.
>Of course the first one would have to be in octal, the 2nd in
>decimal, and the third in hexadecimal... Methinks you're just
>trying to confuse everybody. ;-) In the above there's no
>indication which number system you're using.
>Each one of the above would be 1111 1111 in binary. Put them in
>groups of three (starting from the right) for octal, which yields
>11 111 111, or 0377 (the leading zero signifies octal in C-code).
>Use groups of four for hexadecimal, 1111 1111 or 0xFF (leading "0x"
>signifies hexadecimal in C-code).
>Some compilers and assemblers accept "0b" as the prefix for binary,
>so it'd be 0b11111111.
>So the proper way to ask the question above would be:
> Then 0377 = 255 = 0xff?
>plus it also equals 0b11111111. Four ways to represent the exact
>same number. Ain't computers fun?
>Curt, WE7U. APRS Client Comparisons: http://www.eskimo.com/~archer
>"Lotto: A tax on people who are bad at math." -- unknown
>"Windows: Microsoft's tax on computer illiterates." -- WE7U
>"The world DOES revolve around me: I picked the coordinate system!"
>aprssig mailing list
>aprssig at lists.tapr.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the aprssig