| Binary code... | |
|
|
Author | Message |
---|
Admin Admin~*~*
Posts : 232 Join date : 2008-07-23
| Subject: Binary code... Wed Sep 17, 2008 3:09 am | |
| since this section lack of some motivation, i think of sharing with something basic yet interesting----->> BINARY CODE ....^^ A----->01000001 a----->01100001 B----->01000010 b----->01100010 C----->01000011 c----->01100011 D----->01000100 d----->01100100 E----->01000101 e----->01100101 F----->01000110 f----->01100110 G----->01000111 g----->01100111 H----->01001000 h----->01101000 I----->01001001 i----->01101001 J----->01001010 j----->01101010 K----->01001011 k----->01101011 L----->01001100 l----->01101100 M----->01001101 m----->01101101 N----->01001110 n----->01101110 O----->01001111 o----->01101111 P----->01010000 p----->01110000 Q----->01010001 q----->01110001 R----->01010010 r----->01110010 S----->01010011 s----->01110011 T----->01010100 t----->01110100 U----->01010101 u----->01110101 V----->01010110 v----->01110110 W----->01010111 w----->01110111 X----->01011000 x----->01111000 Y----->01011001 y----->01111001 Z----->01011010 z----->01111010 | |
|
| |
Death V.I.P.
Posts : 368 Join date : 2008-08-05 Location : Milky Way Galaxy
| Subject: Re: Binary code... Wed Sep 17, 2008 12:36 pm | |
| didn't we learn this at Form 5 or something.. | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Wed Sep 17, 2008 2:35 pm | |
| That's just part of the ASCII table. Here's the full one. Check it out. http://www.asciitable.com/
Basically, computer stores everything as numbers. So the alphabet 'A' corresponds to a certain value according to the ASCII standard. ASCII stands for American Standard Code for Information Interchange. Under this standard, all the symbols that we use from our keyboard has a corresponding numeric representation.
Notice that when you are changing from uppercase to lowercase character or vice versa, only the 6th bit is flipped. For instance,
'A' has a binary value of 01000001 while 'a' has a binary value of 01100001 | |
|
| |
withoutwax Professor
Posts : 101 Join date : 2008-08-02
| Subject: Re: Binary code... Wed Sep 17, 2008 6:50 pm | |
| OOooo..soundds interesting..i noe i thought me before...haha
More more info pls..feed us the noobies~~ | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Wed Sep 17, 2008 7:34 pm | |
| There are four commonly used number systems namely binary, octal, decimal and hexadecimal which correspond to base 2, 8, 10 and 16 respectively. We are very familiar with base 10 or decimal because our calculation in maths are all in base 10. However, in system programming, base 2 and 16 are more commonly used. Base 16 can represent a larger value with less number of digits as compared to base 10.
Last edited by chinhau5 on Fri Sep 19, 2008 3:41 pm; edited 1 time in total | |
|
| |
rage V.I.P
Posts : 343 Join date : 2008-08-02
| Subject: Re: Binary code... Wed Sep 17, 2008 8:04 pm | |
| How about EBCDIC and Unicode? Read thru some basic info about it. They say the first is mainly for mainframe while the latter covers all the language available Mind to elaborate and give some examples? Yea feed the noobs here. | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Wed Sep 17, 2008 8:20 pm | |
| EBCDIC and Unicode are just extensions of ASCII. Each symbol takes up 1 byte under the ASCII standard which translates to a maximum of 255 different symbols only. But Unicode stores symbol using 2 bytes of memory, which permits 65535 different symbols. So the Chinese character that we type in Windows is actually Unicode, not ASCII. | |
|
| |
Admin Admin~*~*
Posts : 232 Join date : 2008-07-23
| Subject: Re: Binary code... Wed Sep 17, 2008 9:45 pm | |
| erm...the byte consumed does it mean by the more complicated the word, then the process more complicated? | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Wed Sep 17, 2008 10:14 pm | |
| Opps... What I mean is how much memory (RAM) is used to store the character. 1 byte for ASCII character and 2 bytes for Unicode character. | |
|
| |
rage V.I.P
Posts : 343 Join date : 2008-08-02
| Subject: Re: Binary code... Thu Sep 18, 2008 12:00 am | |
| So let's say we have a fresh copy of Windows XP / Vista installed on a newly assembled machine. So when we are typing typical english language. We're using ASCII only? But we at the same time could read Chinese characters or any other languages as long as the language packed is installed. So are we using Unicode or ASCII then? Coz as far as I concern, if we wanna change the keyboard input type from let's say english to Chinese stroke. We have to change the settings and let the machine reboot. So that would say that we're not using Unicode as we have to reboot to change it? Hmm??? | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Thu Sep 18, 2008 1:01 am | |
| Windows itself uses both Unicode and ASCII. There are some kernel functions that takes in Unicode input parameters while others requires ASCII input parameters. Since Unicode is just an extension of ASCII, it can represent ASCII characters as well as chinese characters and others. It all depends on how a program is coded. Some program stores our input as ASCII character if it is assumed that we are not using an language other than English while other program stores it as Unicode. As far as I know, you don't need to reboot my PC to change input language. | |
|
| |
Admin Admin~*~*
Posts : 232 Join date : 2008-07-23
| Subject: Re: Binary code... Thu Sep 18, 2008 9:18 pm | |
| let me ask a noob and stupid question, with the language pack installed, and the program such like Chinese star, the more we use, the more memory consumed? | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Thu Sep 18, 2008 10:06 pm | |
| Use more as in type more characters? The memory used to store the characters that you typed is negligibly small. For instance, 1000000 characters take up 1000000 bytes (close to 1 MB) for ASCII and 2000000 bytes (around 2MB) for Unicode. Besides, the memory is freed when it's no longer needed. | |
|
| |
Admin Admin~*~*
Posts : 232 Join date : 2008-07-23
| |
| |
rage V.I.P
Posts : 343 Join date : 2008-08-02
| |
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Fri Sep 19, 2008 3:37 pm | |
| | |
|
| |
Death V.I.P.
Posts : 368 Join date : 2008-08-05 Location : Milky Way Galaxy
| Subject: Re: Binary code... Fri Sep 19, 2008 11:05 pm | |
| hmm..so every program that requires font needs binary? | |
|
| |
chinhau5 Professor
Posts : 30 Join date : 2008-07-31
| Subject: Re: Binary code... Sat Sep 20, 2008 9:22 am | |
| - Death wrote:
- hmm..so every program that requires font needs binary?
Not every program that needs font. It's everything that runs in your computer. The CPU processes information in terms of 0 and 1 bits which is the binary number system. Keep in mind that ASCII, EBCDIC and Unicode are just standards to represent symbols/characters as numbers since computer only understand numbers. On the other hand, binary, octal, decimal and hexadecimal are number systems. | |
|
| |
Sponsored content
| Subject: Re: Binary code... | |
| |
|
| |
| Binary code... | |
|