Binary Illustration

07/24/2014 18:50 Trailßlazer#1
I thought I would illustrate and give a simplified reference and overview for beginners on how does a CPU understand the code (high level programming language):bandit:
High level language is the language that we humans use to code using compilers on computers which is close(not really) to human language in a way that is understandable which makes it way easier for us.

The compiler converts your code to assembly language and then it gets converted to binary numbers (machine language) so the CPU can understand it, that's why there's compilers and programming languages cause binary is hard to use as it will take a very long time to finish a small program.

Binary 8-bit system:bandit:

Result1286432168421
1900010011
6501000001
12810000000
000000000
25511111111

It works as you input your result in the result column first, then you put 1 under the whole numbers that can be summed to get the results.

Ex: If you want 65 and that’s = Letter "A" you will put 1 under the numbers that can be inputted to get the result 65 FROM LEFT TO RIGHT
EX: 65 = letter "A".

Result1286432168421
6501000001
and 65 is equal to A

There's a chart that show's you the decimal and binary values and their outputs The ASCII and ASCII meaning.:rtfm:

What does a bit mean?
It means binary digit.

Ex: 1001 = 4 bit

Here are some charts:

Quote:
Originally Posted by KraHen View Post
If you want a more in depth guide check my ASM tutorial, if you want proper understanding check a book on the topic.
You can make programs using binary just for fun but using it to build real programs wouldn't be a good idea. AT ALL. That's why they(or we computer scientists) made the high level language, to save tons of time. :bandit:
07/25/2014 11:33 KraHen#2
Quote:
Originally Posted by Trailßlazer View Post
I thought I would illustrate and give reference for beginners how does a CPU understand the code :bandit:

The compiler converts your code to binary numbers so the CPU can understand it, that's why there's compilers and programming languages cause binary is hard to use as it will take a very long time to finish a small program.

Binary 8-bit system:bandit:

Result1286432168421
1900010011
6501000001
12810000000
000000000
25511111111

It works as you input your result in the result column first, then you put 1 under the whole numbers that can be summed to get the results.

Ex: If you want 65 and that’s = Letter "A" you will put 1 under the numbers that can be inputted to get the results 65 FROM LEFT TO RIGHT
EX: 65 = letter "A".

There's a chart show's you the decimal and binary values and their outputs The ASCII and ASCII meaning.:rtfm:

What does a bit mean?
It means binary digit.

Ex: 1001 = 4 bit

Here are some charts:

You can use Hex Editor to make and edit programs using binary just for fun but using it to build real programs wouldn't be a good idea. :bandit:
If you want a more in depth guide check my ASM tutorial, if you want proper understanding check a book on the topic.