“Do machines have a language? What language do machines use? What is machine language?” Ahmet Cemal Kurtulmuş, our R&D unit design team leader, wrote on our technology blog for those looking for answers to these questions.
Have a nice reading…
Language of Machines
01001101 01100001 01101011 01101001 01101110 01100101 01101100 01100101 01110010 01101001 01101110 00100000 01000100 01101001 01101100 01101001 1
People speak a common language among themselves to communicate. Every society has its own language and they communicate with each other through this language. That language is so established that a person thinks with that language even when he thinks to himself. In order for a society to communicate with other societies, people learn new languages. The new languages they learn give them the opportunity to communicate with other societies. In this learning process, there are language teachers who teach them the language or facilitate their learning.
Nowadays, with the development of technology, another language has emerged. This language allows us to communicate with machines. This language in question is machine language. The teachers who teach machines our language are our software, electronics or computer engineers. Machine language is based on mathematical logic. Just as we use our own language even when we think internally, machines also use their own language when performing operations within themselves.
We generally do not have much difficulty using the machines. Because everything has been prepared to achieve an easy user experience at the final stage, considering a more practical human-machine interaction. For example, when we want to make a phone call, we press the contacts icon on our phone's screen. We find the person we have previously registered with the language we use and then press the call button. These actions are sufficient to perform a call. Of course, the reason we can do this process so easily is because one of our engineers previously taught the phone our language. In fact, the machine speaks in its own language in the background, namely, the machine language.
Now we can start to delve a little further into the inner world of machines. We have said before that the language of machines is actually rooted in a field of mathematics. This branch of mathematics is called as binary system. In fact, machine language is based on numbers. Different combinations of these numbers provide agreement by corresponding to different expressions.
Binary system is a number system consisting of base two numbers. We can take the counting process as an example to describe it. Let's count from 0 to 9, add one more digit for 10 and get 10. This is the normal number system we use. The logic of the binary number system is essentially the same in that it is a number system consisting of 0 and 1. After 0 comes 1 and then, since there is no other digit, it takes a new digit next to it. Thus, the process continues as 10 and 11. Again, since we are using the largest of our numbers, the process continues by adding one more digit, like 100, 101… This system is called binary system in mathematics.

The binary system has also led to the formation of a unit that we often hear about. The name of this unit is byte. We call each of the digits in the binary system a bit. 8 bits form the value of 1 byte; 1024 bytes equal 1 kilobyte, and 1024 kilobytes equal 1 megabyte. Since we can put two different values in each digit in the binary system, we can easily express different data as much as the number of digits above 2 with the binary system.
Machine Language and ASCII Code
Let's explain this situation more clearly with an example. For example, let's say we have two bits of data. These must be one of the values 00, 01, 10, 11. So, we store 2 pieces of data in 4 bits. All over the world, 1 byte of data (8 bit data) is based on a meaningful standard and we use this standard when communicating. Since 8 bits = 256, it represents 256 different data. These data are standardized under the name ASCII (American Standard Code for Information Interchange). The ASCII code of some frequently used data is shown below.


Thanks to the binary system, we now know how to communicate with machines. However, the question may immediately come to your mind: "Why are we trying to communicate with such a number system? Can't we just use the numbers we know?"
We can answer this as follows:
The binary number system is quite easy to describe electrical signals. In other words, we can say that while creating a voltage of +5 volts for the value (number) 1, it will be sufficient to apply a voltage of 0 volts for the value (number) 0. Of course, these voltage levels may vary. In order to better visualize the basic logic in our minds, we can re-examine the mechanism as follows. Let's imagine the situation that you entered your house and pressed the light switch. Turning on the lamp in the room corresponds to 1, and turning off the light corresponds to 0. At this point, a concept emerges that we refer to as frequency.
Let's start the stopwatch as soon as we turn off the light while the light is on and leave the light off for a second. Then, let's turn on the light after 1 second and wait for 4 seconds. Then let's turn off the light again and wait for 3 more seconds. At the end of 8 seconds, we created a total of 01111000 data. This gives us the character 'z' according to ASCII.
In the example above, since we made one transaction every second, our frequency became 1 Hertz. Gigahertz, which is 1 billion times more than 1 hertz, is a value that expresses the speed of our phones or computers today and is familiar to all of us. So if your computer is 3 gigahertz, now you know that your computer performs that action 1 billion times in 3 seconds! In other words, if we consider the abovementioned lamp-switch relationship again, our computer can turn light on and off 3 billion times in a second.
Binary Number System and Working Principles of Machines
We think we have learned about the language of machines to a certain extent. So now we are able to communicate with machines. However, just as it is futile for a person who does not think to communicate, we will not need the communication of a machine that does not operate. As we mentioned before, just as people think within themselves with their own language, machines also operate with their own language. These computers (machines), which operate using their own language, work through an enormous system. The system of reasoning and logic abilities created by this binary system is formed by boolean algebra , which is another branch of mathematics.
Let's try to explain this system a little through a simple example;
Since we are working with a binary system, we only have ones and zeros. Therefore we have to make operations with these alone.
We are turning back again to the lamp-switch relationship above. Let's put two electric buttons in a row one after the other. Let's connect a lamp to the end of these electric buttons. When we press the first button (binary case 1), the lamp does not light up. Because we haven't pressed the other button (binary at 0) yet. If we do not press the first button we pressed while pressing the other button, the lamp will not light up again because the line is still open. The only way we can light the lamp is by pressing two buttons at the same time.
This situation can be understood more clearly in the table below.
| BUTTON 1 | BUTTON 2 | LAMP |
| 0 | 1 (Printed) | 0 |
| 1 (Printed) | 0 | 0 |
| 0 | 0 | 0 |
| 1 (Printed) | 1 (Printed) | 1 (Lights up) |
If we want to perform the operation, there must be a signal from both the first button and the second button.
This basic mathematical logic and number system is the formation point of very large and complex systems. These structures constitute systems such as microprocessors, ram and microcontrollers. Today almost any machine you can think of comes to life and gains intelligence through this system. Airplanes, washing machines, dishwashers, motor drives, televisions, telephones, cars and so on. Millions of different machines work this way.
We see binary number systems, which form the basis of such complex systems, in the early stages of mathematics. Let's recall the green numbers flowing against a black background in The Matrix (1999) , a film familiar to many of us . These numbers were chosen in a way that perfectly suits the film's theme and were designed to emphasize the operations we are discussing in this article.
11000100 10110000 01111001 01101001 00100000 01100111 11000011 10111100 01101110 01101100 01100101 01110010
While finishing our article, you can translate this code via the Binary-Text translation tool. In this way, you can find out which sentence we ended our article with. Moreover, with the same tool, you can produce the equivalent of your own text in the binary system.
Ahmet Cemal Kurtulmuş
- This binary code is the equivalent of the phrase “Language of Machines” in machine language. ↩︎

