[aprssig] A funny packet story/joke (The KISS guys will get it)
Tad Burnett
tburnett at vermontel.net
Wed Nov 9 11:44:19 EST 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...
Tad N1QAG
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.
>Yes!
>
>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
>https://lists.tapr.org/cgi-bin/mailman/listinfo/aprssig
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/aprssig_lists.tapr.org/attachments/20051109/ccd27a4e/attachment.html>
More information about the aprssig
mailing list