Mind Spirit Share
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Mind Spirit Share

This forum is for those who willing to share whatever come across the mind.
 
HomeLatest imagesSearchRegisterLog in

 

 Binary code...

Go down 
5 posters
AuthorMessage
Admin
Admin~*~*
Admin~*~*
Admin


Posts : 232
Join date : 2008-07-23

Binary code... Empty
PostSubject: Binary code...   Binary code... Icon_minitimeWed 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
Back to top Go down
http://mss-919.omgforum.net
Death
V.I.P.
V.I.P.
Death


Posts : 368
Join date : 2008-08-05
Location : Milky Way Galaxy

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed Sep 17, 2008 12:36 pm

didn't we learn this at Form 5 or something..
Back to top Go down
http://chosen-paths.blogspot.com
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed 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
Back to top Go down
withoutwax
Professor
Professor
withoutwax


Posts : 101
Join date : 2008-08-02

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed Sep 17, 2008 6:50 pm

OOooo..soundds interesting..i noe i thought me before...haha

More more info pls..feed us the noobies~~
Back to top Go down
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed 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
Back to top Go down
rage
V.I.P
V.I.P
rage


Posts : 343
Join date : 2008-08-02

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed 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. Embarassed
Back to top Go down
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed 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.
Back to top Go down
Admin
Admin~*~*
Admin~*~*
Admin


Posts : 232
Join date : 2008-07-23

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed Sep 17, 2008 9:45 pm

erm...the byte consumed does it mean by the more complicated the word, then the process more complicated?
Back to top Go down
http://mss-919.omgforum.net
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeWed 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.
Back to top Go down
rage
V.I.P
V.I.P
rage


Posts : 343
Join date : 2008-08-02

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeThu 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???
Back to top Go down
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeThu 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.
Back to top Go down
Admin
Admin~*~*
Admin~*~*
Admin


Posts : 232
Join date : 2008-07-23

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeThu 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?
Back to top Go down
http://mss-919.omgforum.net
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeThu 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.
Back to top Go down
Admin
Admin~*~*
Admin~*~*
Admin


Posts : 232
Join date : 2008-07-23

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeThu Sep 18, 2008 10:48 pm

oic ....then do you know EBCDIC ? Is it same as binary code? mind to explain ? Razz Razz
Back to top Go down
http://mss-919.omgforum.net
rage
V.I.P
V.I.P
rage


Posts : 343
Join date : 2008-08-02

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeThu Sep 18, 2008 11:09 pm

Admin wrote:
oic ....then do you know EBCDIC ? Is it same as binary code? mind to explain ? Razz Razz

Er...i thought he just explained it above?
Back to top Go down
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeFri Sep 19, 2008 3:37 pm

rage wrote:
Admin wrote:
oic ....then do you know EBCDIC ? Is it same as binary code? mind to explain ? Razz Razz

Er...i thought he just explained it above?

I have yet to explain about EBCDIC. By the way, binary is a number system. I think it should be called binary instead of binary code. Smile
Back to top Go down
Death
V.I.P.
V.I.P.
Death


Posts : 368
Join date : 2008-08-05
Location : Milky Way Galaxy

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeFri Sep 19, 2008 11:05 pm

hmm..so every program that requires font needs binary?
Back to top Go down
http://chosen-paths.blogspot.com
chinhau5
Professor
Professor



Posts : 30
Join date : 2008-07-31

Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitimeSat 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.
Back to top Go down
Sponsored content





Binary code... Empty
PostSubject: Re: Binary code...   Binary code... Icon_minitime

Back to top Go down
 
Binary code...
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Mind Spirit Share :: Technology Support Zone :: C, C+, C# discussion-
Jump to: