Chapter 414: The Originator of the Virus

readx;

Lin Hong originally didn't care about that student status, and he was expelled from the school, but since his mother called to talk about it, he thought about it for a while and decided to go back to Shuimu. www.biquge.info Of course, when he went back, he didn't go back to school, but went through the suspension procedures.

Although the phenomenon of suspension is not very common in China, Lin Hong knows that this procedure still exists.

After explaining to Zhang Jin, Lin Hong flew directly from Shanghai City to Beij, compared to which the traffic here is more convenient and the time taken is shorter.

Lin Hong also has a laboratory in North J, and this time, by the way, he transferred the things there to the company's headquarters.

When he arrived at the school, he went straight to the counselor's office.

This counselor, hard-mouthed and soft-hearted, although he had already said that he would be expelled from school, but he did not take action again and again, but covered for him, overall, it was quite interesting.

"You're finally here!" Counselor Dai sighed when she saw him, "It's not easy to see you!" ”

"Counselor, I'm really sorry to cause you trouble." Lin Hong sincerely apologized, "Last time there was indeed a very urgent matter. ”

"Okay, let's not talk about the past." Counselor Dai looked at Lin Hong, "Tell me, what are your plans next?" If I hadn't called your home, would you have fired yourself directly? ”

"I really thought I was going to be expelled from school." Lin Hong smiled, "I came this time to go through the suspension procedures. ”

"Suspension?" Counselor Dai was not much surprised when he heard this, he had never seen the appearance of a student from Lin Hong. "That's fine. What do you plan to do after you take a suspension? ”

"I started a company with my friends, and I will focus on the company in the future."

"No wonder ......"

Counselor Dai nodded: "Drop out of school and start a company." Such things are common abroad, and Bill Gates was like that back then. However, after dropping out of school, they actually did not stop learning, and I hope you can do the same, even if you are suspended, don't forget to continue to recharge yourself. Only then will you be able to go further in the future. ”

"Thank you! I know. Lin Hong nodded.

The suspension procedure is a bit troublesome, not only requires the consent of the counselor, but also has to be submitted to the hospital and the academic affairs office for approval, and it will definitely not be able to get down within a day or two.

After Lin Hong filled out the suspension application form, he left the counselor's office. Returned to dormitory 604.

When I came to the dormitory. I just saw Wu Dong about to go out.

"Boss!" After Wu Dong saw Lin Hong, he was immediately overjoyed, "You're finally back!" ”

"Hehe, you're going to class?"

"No, I'm going to look up the information in the gallery. I didn't have a class in the morning, I just finished it. ”

Seeing Lin Hong come back, Wu Dong also gave up his plan to go to the gallery. He had a lot to say to him.

Lin Hong assigned them the tasks of the virtual machine project, they have completed in advance, last time asked him what step to do next, Lin Hong did not give a clear statement, said to meet and talk.

After a brief conversation, the conversation shifted to the virtual machine project.

"Boss, I'll let you see what we're doing."

Wu Dong said and turned on the computer. Then run a program that resembles a terminal interface.

This is the terminal emulation interface of the virtual machine, and Lin Hong sits in front of the computer. Typing in one of their preset debug commands, they entered programming mode.

in this mode. It is equivalent to an assembly compiler, which can be executed by directly inputting the instructions of the CPU.

Lin Hong entered several common CPU instructions, including mov, add, mul, shl, shr, or, etc., and after the execution, he directly dumped the contents of the CPU registers.

The displayed result is correct, and it is completely implemented according to the technical parameters of the 8086 CPU, including the instruction format and addressing method are completely consistent with the 8086.

The whole program is equivalent to a computer hardware, which directly uses files to emulate the registers and memory structure of the CPU.

The program executed inside will not have any effect on the operating system outside, at most the content of the file has changed.

Lin Hong next looked at the source code they wrote, and everything was written in C.

The implementation code behind is written very well.,Whether it's the implementation method and the execution efficiency,It can be seen that it has been specially optimized.,It seems that the new computer teacher really deserves to be in this line of research for so long.,Implement this kind of thing.,It's a little handy.。

Lin Hong said with a smile: "That teacher really deserves to teach the principles of computer composition. ”

Wu Dong nodded and said: "Yes, he said that he has been teaching this course for several years, and he teaches boring theoretical knowledge to his classmates every day according to the textbook, and everyone has no concept at all, and he returned all the content to him in the blink of an eye after the exam." After seeing our project, he was very happy, and after two days of careful study, he said that he wanted to join us, and then he took all the next instructions to implement the tasks, and all of them were realized in less than a week. ”

If you want to make this, you can't complete it without a full grasp of the structure and operating principle of the CPU. Take the addressing method of 8086 as an example, there are many ways to implement it, which is not as simple as register-to-register, but also to consider direct addressing and indirect addressing, in which indirect addressing is divided into two situations.

Wu Dong continued: "Also, Mr. Guo also asked me if this project is based on an open source license, and he wants to use this project to transform it, customize it specifically for his course, and when teaching in the future, let his students implement it step by step, so that they can really master this knowledge." ”

"It's no problem, he can use it if he wants, anyway, this project is mainly for learning."

"Boss, what are we going to do next?" Wu Dong asked this question again.

Lin Hong: "At the beginning, I asked you to do this project, mainly to let you understand the basic principles of CPU, and now it seems that this purpose has been achieved, and I believe you have enough understanding of the underlying programming." According to my original plan, if I did this, the project could be stopped. ”

"Stopped?" Wu Dong couldn't help but be stunned when he heard this, "It's a pity to stop like this?" Now that our project team has finally been formed, we haven't done anything yet, so it's stopped? ”

This project is the first relatively large project that Wu Dong has done, and it is also the one that has invested the most time and energy.

Lin Hongdao: "This is the original plan, I didn't expect you to form a project team because of this. Now it seems that I can continue to use the residual heat of this project, and I have already thought about it, and then I will transform this project into a game platform. ”

"Gaming platform?" Wu Dong's eyes lit up when he heard this, but at the same time, he was a little puzzled, how could this thing be associated with the game?

He had the impression that games were very complex programs that involved complex graphical interfaces and calculations. The thing they are writing now, to put it bluntly, is completely like a toy, it has no practical value at all, and it does not have any interest, and only those who study this profession will be a little interested in it.

And now Lin Hong told him that he wanted to transform this project and make it a game platform, which couldn't help but make him feel very strange.

Lin Hong didn't answer, but asked, "Have you ever heard of the core war?" ”

"Core Wars?" Wu Dong shook his head, "I haven't heard of it." A game? ”

"Yes, a popular game with hackers and computer scientists, and the progenitor of viruses."

Lin Hong said, turned on his computer, and then ran a program in his computer.

Wu Dong was completely shocked by Lin Hong's words, the ancestor of the virus, this name is really big enough. He hurriedly stepped forward to check the program that Lin Hong was running.

In the middle of the monitor, a black box appeared, and two flashing dots appeared in the box.

Both of the two points are starting to move, but they don't work in the same way, one of them is red, it is like a small snake, moving forward step by step, and the other is yellow, it seems to have long legs, and it jumps forward, leaving its own color wherever they pass, and the grid in the box is constantly eroded by them.

"It's called Darwin." Lin Hong said, "It was ......written by an engineer named Mak Yaolai in Bell Labs decades ago."

In 1959, three young men in their twenties at Bell Labs invented a game called "Magnetic Core Wars" to bring to life the virus described by computer pioneer von Neumann a decade earlier in his paper "The Theory of Self-Reproducing Automata": McShalol, Vysowski, and Morris.

“…… This Morris, the father of Robert Morris, the author of the later famous Morris worm. Lin Hong continued, "This red warrior, called Creeper, will automatically generate a copy every time it is executed, that is, it will make a copy of itself, and it is through this simple mechanism that it constantly devours the memory inside. At the time, the core was memory. ”

Wu Dong listened and understood a little.

Although the game in front of me does not seem to be interesting, the underlying mechanics are not simple.

Two warriors, one red and one yellow, are grabbing memory resources inside, constantly devouring each other, and whoever can finally grab all the memory will win.

"Boss, I see! You mean, we've retrofitted a virtual machine platform to something like Darwin? Then let everyone program the warrior and play the game in it. Isn't that so? (To be continued.) )