Chapter 256: Heaven and Earth Code

256.

After the old man and the master of the Perak Hall began to cooperate in refining the new keyboard, Cheng Li took out a pen and paper on the side and began to write.

He was writing out a new set of codes that he had in mind.

The two cores of keyboard design, in addition to the keyboard layout, are also coding.

Coding refers to the process by which information is converted from one form to another.

Computers can only read binary languages.

The Chinese characters, letters, numbers, and symbols we input with the keyboard are all input into the computer in the form of characters, and then converted into codes through encoding, stored in the I/O controller, and then the CPU takes away the data that has been converted into binary code.

For example, when we press 2 on the keyboard, the keyboard control circuit will generate the key code based on the electrical signal generated by key 2.

The generated key code is not the binary representation of 2 00000010, but will be converted into the ASCII coding system, the number 2 corresponds to the code, hexadecimal is 32, and binary is 00110001.

In addition to numbers, every letter, symbol, such as !%¥*, etc., is a character, and has a unique code corresponding to it in the ASCII coding system.

For example, the encoding of spaces is 04 in hexadecimal, and the encoding of the letter P is 0D, #的编码是05.

In this way, each character is encoded in ASCII with an 8-bit string of binary digits to identify it in the computer.

In this way, the computer knows what the data is for this encoding.

What Cheng Li has to do is to get a new set of codes for Qingling Island, which can contain the binary codes corresponding to all Chinese characters.

In fact, there is already a Unicode encoding on the earth to encode Chinese characters.

But in addition to Chinese characters, Cheng Li also needs to include some special languages, symbols, and instructions in the Qingling Island system in the new coding table according to the core secret pattern set of the spirit armor of Qingling Island.

Therefore, on the basis of Unicode encoding, Cheng Li removed all the binary encodings about letters in Unicode encoding, and then corresponded to the special languages, symbols, and instructions involved in the core secret pattern set of Qingling Island to the encoding of the original letters in Unicode encoding.

Thus, a whole new set of codes was born.

Cheng Li decided to name it the "Heaven and Earth" code, which means the code for the union of the nine heavens and the earth.

After getting the coding, the work of the old man and the Thunderbolt Hall Master came to an end.

With a flash of golden light, an antique-looking metal keyboard appeared in front of Cheng Li.

"This ...... Keyboard? Okay, let's call it a keyboard.

"The main body of this keyboard is made of refined iron, and the key parts are made of silk made of saucer spirit silkworms, as the contact part, to ensure that it has an excellent feel and elasticity, and can meet the normal operation when the keyboard is knocked a thousand times in an instant. ”

Well, after listening to the introduction of the Thunderbolt Hall Master, Cheng Li understood that the world's requirements for keyboard performance are judged by the ability to withstand sonic hand speed.

After taking the keyboard, Cheng Li studied it carefully, and then began to instruct the old man and the master of the Thunderbolt Hall to correspond to the yin and yang signals output after pressing the keyboard keys and the keys one by one.

"Count old, this is the heaven and earth code, you need to press these keys to generate the yin and yang signals, and these codes to correspond one to one. ”

"Heaven and earth code? ”

After calculating the old results of the Heaven and Earth Code Table, he studied it with the Thunderbolt Hall Master.

After a while, the two of them began to refine the keyboard again.

This time, it took them a long time, because it was quite complicated to design a new set of keyboard spirit path controls. However, as long as the keyboard path is designed, it can be directly reproduced and mass-produced in the future.

Another hour passed, and the old man and the master of the Thunderbolt Hall finally got the keyboard that met the requirements of Cheng Li.

After taking over the keyboard, Cheng Li first asked the old man for a forest-level calculator.

And made it clear that this Sen-level calculator is intended to be used for himself as a private calculator.

At this time, Cheng Li was already the honorary head, and he would naturally not be stingy with this one forest-level calculator, even if there were only 300 such forest-level calculators in the entire Qingling Island.

So with a wave of the boss's hand, Cheng Li had another forest-level calculator in his hand.

After getting this Sen-level calculator, Cheng Li began to put it on the table, and then he entered the Yin and Yang Taiji into the panel and plugged in the Sen-level calculator first.

There is no doubt that the keyboard cannot be directly connected to the calculator before the early running environment is set up, and it is directly recognized by the calculator for use.

First of all, in this sen-level calculator, use binary language to write a program instruction that can drive the keyboard, and then input the corresponding mapping relationship of the set of heaven and earth codes into the sen-level calculator, so that the calculator can know what the corresponding relationship is of the signal input by the keyboard.

If it was before, it would be impossible for Cheng Li to write such a complex program directly in binary machine language.

However, after the baptism of the 3,000th floor of the arithmetic monument, coupled with the substantial strengthening of the mind and body after Cheng Li's promotion to the foundation building period, the programming level and mathematics level of Cheng Li have been greatly improved, and after the integration of the two, Cheng Li is now reborn in the field of programming and mathematics.

Under such changes, he is now very comfortable programming in binary languages.

After working like this for another half an hour, Cheng Li wrote the entire set of heaven and earth codes, as well as the driver of the keyboard, into the sen-level calculator.

After doing this, the most difficult part of the project remained, which was to write the Plankalkül compiler, which had been localized by itself, into a binary machine language into the forest-level calculator.

This is also a huge challenge for Cheng Li now.

So, this time, it took Cheng Li three hours to write all the data information into the Sen-level calculator.

However, none of the onlookers left the crowd, and everyone just stood and watched everything Cheng Li was operating on it.

The old man also projected a light curtain to input Cheng Li into the whole process of the forest-level calculator and showed it to everyone around.

Of course, this is also with Cheng Li's consent.

This made everyone look as if they were watching a miracle, watching Cheng Li keep entering strings of binary data...... Even if they can't read it.

Finally, after three hours, Cheng Li breathed a sigh of relief and removed his hands from the Yin Yang Taiji panel.

After all this was done, Cheng Li unplugged the Yin-Yang Taiji panel from the forest-level calculator, and then plugged in the freshly baked metal keyboard.

"Goodbye, Yin and Yang Tai Chi panel. It's still the keyboard I'm familiar with, and it looks a little cuter. ”