|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Blizzard Fanboy
Join Date: May 2003
Location: Northrend
Posts: 1,411
|
binary question
well i'm extremely bored here at work so i decided to learn the alphabet in binary. i already knew the number system so... simple enough. i see that the alphabet is just 65-90. how do you distinguish the alphabet from the numbers 65-90? for example, say i wanted to write a message to a friend in binary. how would they determine letters from 65-90? or do you just have to look at the context?
if i didn't make this clear enough, please let me know... thx
__________________
EVGA 750i SLI - EVGA 9800 GX2 - Intel Q6700 - 4GB Corsair PC6400 - 1TB Seagate HDD - X-fi Gamer - Logitech G51 5.1 - ViewSonic 22" WS - Vista Premium |
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: May 2002
Posts: 298
|
Not really sure what you know. But if what you are saying is that 65 to 90 represent the alphabet, then that makes sense because there are 26 letters in the alphabet. So just go play around with it.
|
|
|
|
|
|
#3 |
|
Red-eyed Moderator
Staff
Premium Member
Join Date: Dec 1999
Location: Regina, Saskatchewan, Canada
Posts: 17,576
|
Or use this.
__________________
-At Ford, quality is job #1, job #2 is making them explode. ~Norm MacDonald, SNL News -Switching to Glide..Balancing in my head..inside of me... taking the glide path instead. |
|
|
|
|
|
#4 |
|
Blizzard Fanboy
Join Date: May 2003
Location: Northrend
Posts: 1,411
|
lol no i want to do things the hard way, and i want to know if there is any definition between letters and the numbers 65-90.
edit: maybe this will better explain myself... say i write this: 01000001. how would a person know if this is supposed to mean 65 or A? Last edited by spyder003; 11-20-2003 at 04:26 AM. |
|
|
|
|
|
#5 |
|
Member (14 bit)
Join Date: Mar 1999
Location: Kelowna, B.C., Canada
Posts: 9,138
|
11000001 versus 01000001.
The first bit is the "key", telling you if it's an A or 65. |
|
|
|
|
|
#6 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
well, than how do you know that 11000001 is A not -63, because, if i am not mistaken, then when you have 1 as the high order bit, it denotes a negative number, depending on what type of logic the computer is using (ie two's complement).
craig
__________________
the universe is against this current wave of success i'm having. -johnny drama, entourage |
|
|
|
|
|
#7 |
|
Member (11 bit)
Join Date: Feb 2003
Location: Tucker Ga. USA
Posts: 1,305
|
Because the numbers are one character 0-9 ,32 to 41.
Every possible value from 0 to 255 has a corresponding character in the ASCII character code, even though many of them are not displayable. It may be easier on you to group the bits into 32 character blocks (5 bits) and control codes (2 bits). And the choices with the control codes would be control(no bits) numeric, UC alpha, and LC alpha. |
|
|
|
|
|
#8 |
|
Member (14 bit)
Join Date: Mar 1999
Location: Christmas, Florida
Posts: 10,661
|
letters ar in aschii code which is changed to hex, then the hex is changed to binary,
to keep it stright |
|
|
|
|
|
#9 | |||
|
Blizzard Fanboy
Join Date: May 2003
Location: Northrend
Posts: 1,411
|
i must be missing something here, or it doesn't work as i thought...
Quote:
Quote:
Quote:
|
|||
|
|
|
|
|
#10 |
|
Member (14 bit)
Join Date: Mar 1999
Location: Kelowna, B.C., Canada
Posts: 9,138
|
You're talking about an 8 bit byte, so no, 11000001 is NOT 193. To get 193, you need 2 bytes, or (for argument's sake) a 16 bit byte. The first byte contains the control codes, for negative, positive, whatever, and the second byte contains the actual code for whatever alphanumeric character you want.
The larger the whole number (in decimal, base 10) the more bytes you need to represent it. |
|
|
|
|
|
#11 |
|
Member (11 bit)
Join Date: Feb 2003
Location: Tucker Ga. USA
Posts: 1,305
|
I led you astray. ASCII 7 level + parity. 2 channel control set + 5 channel data set. 128 characters.
EBCDIC is 8 and can do 256. Extended binary coded decimal interchange code. Splits in half to do hexadecimal notation. In hex goes from 00h to FFh. If I recall A=41h, which relates to character #65. Has been a long time. a=61h maybe. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|