Machine language.

Shashipriya
3 min readFeb 7, 2021

--

Sometimes referred to as machine code or object code, machine language is a collection of binary digits or bits that the computer reads and interprets. Machine language is the only language a computer is capable of understanding.The exact machine language for a program or action can differ by operating system. The specific operating system dictates how a compiler writes a program or action into machine language.

Computer programs are written in one or more programming languages, like C++, Java, or Visual Basic. A computer cannot directly understand the programming languages used to create computer programs, so the program code must be compiled. Once a program’s code is compiled, the computer can understand it because the program’s code is turned into machine language.Machine language example
Below is an example of machine language (binary) for the text "Hello World." 01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100.

Below is another example of machine language (non-binary), which prints the letter "A" 1000 times to the computer screen.

169 1 160 0 153 0 128 153 0 129 153 130 153 0 131 200 208 241 96.

How does a computer convert text into binary or 0’s and 1’s?

Computers convert text and other data into binary by using an assigned ASCII value. Once the ASCII value is known that value can be converted into binary. In the following example, we take the word hope, and show how it is converted into binary that the computer understands.

Let’s take the first character h and break down the process. Once the letter h (in lowercase) is typed on the keyboard, a signal to the computer as input. The computer knows the ASCII standard value for h is 104, which can be converted by the computer into the binary value 01101000. After the h is converted to binary, the computer can store and process the data as ones and zeros.

Thanking you,

Megha women’s degree

College, Ramanthapur.

With gratitude,

Shashipriya.

--

--

Shashipriya
0 Followers

Sucess is when your signature changes to AUTOGRAPH.!!