PCLogin()

Already happened story

MLogin()
Word: Large medium Small
dark protect
Already happened story > Super Brain Hacker > Chapter Sixty: Its That Simple

Chapter Sixty: Its That Simple

  ♂?,,

  It was around the time when Lus was eleven years old that his grandfather finally brought home their first computer, a Vic-20. This was the first real computer Lus had ever laid hands on and he became completely absorbed in this magical world.

  The VIC-20 was one of the first home computers, with only a small box as the main unit, requiring connection to a TV set as a display. Lus's grandfather just treated it as an upgraded calculator, and in fact, this computer wasn't very powerful either, but for Lus, this computer had great significance.

  The VIC-20 was simple but could be programmed in BASIC and this became one of its greatest joys.

  Basic is a relatively simple high-level programming language, most suitable for beginners to learn and use.

  He still has a vivid memory of his first computer program, which was a small program that continuously printed "Hello" on the display. It was entered into the Basic programming language according to the example in the programming manual, very simple, with only two lines of code. The first line of code told the computer to print "hello", and the second line made it jump back to the first line.

  Normally, when a computer executes a program, it does so from front to back in sequence. However, if a jump is artificially specified, it will obediently switch to the designated location and start executing again.

  So, the first program that Lus wrote was to continuously print "Hello" on the monitor. Later, his sister saw it and asked him to modify the program, changing the content of the first line to "Sara is the best in the world!".

  He soon became proficient in the BASIC language and was able to use it to help his grandfather solve some complex calculation problems, becoming his trusted assistant. It was at this time that he deeply felt the impact of computer programming on his life.

  After that, he wrote many programs with the Basic language, most of which were one-time, written and then deleted. He implemented his various ideas through programming and enjoyed the fun beyond radio. And he began to try to connect the computer with his radio station. After all, they are both electronic products, and there is still some connection between them. He saved his pocket money to buy some data lines and conversion interfaces, connecting the computer with his own station. And started trying to use the Basic language to write a program that can convert English characters and Morse code into each other.

  That is to say, as long as the text content to be sent is entered, this program will automatically convert these characters into Morse code in "dits and dahs" mode, and then transmit the signal through the cable connected to the computer.

  This is a very practical program. With this, it greatly simplifies the efficiency of communication with others and frees up his own keyboard buttons.

  It took him about a month to complete his program, and English characters could be converted into "dit" signals smoothly. However, he encountered a rather frustrating problem - he didn't know how to transmit these signals to the telegraph machine through a data line.

  This requires understanding the underlying principles of data transmission, but the basic language does not have any content in this regard.

  He spent a lot of time studying the problem but couldn't make head or tail of it. Until one day, he got such a program from an amateur radio friend.

  This program has the same functionality as what Lus previously envisioned, and it works normally, successfully sending out reports like CW. For Lus, what's most important is not the functionality of this program, but rather the language in which it was written.

  Before this, he had always thought that computer programming was just Basic programming, thinking that there was only one programming language in the computer. As for how the underlying layer of the computer works, he didn't have a very clear understanding.

  And this little program opened up for him the door to the underlying principles of computers.

  That ham friend not only gave him the compiled program, but also attached the source code of this small program.

  He was shocked to discover that the program wasn't written in BASIC, but rather some strange numbers. At first, he couldn't understand them at all, but this didn't deter his interest in studying it further. Later on, he found out that these numbers were a hexadecimal language called "machine code". These numbers could easily be converted into strings of digits consisting only of "0"s and "1"s through fixed conversion relationships.

  But "0" and "1" are the most fundamental principles in computers.

  The basic language is just a high-level language built on top of "machine code", and it was invented to allow programmers to remember better and reduce the difficulty of programming.

  This principle is just like those idiomatic expressions, although they only have a few words, they may contain a large amount of content. Programmers had learned these "expressions" long ago, so when they write programs, it's just like writing an article, using these idiomatic expressions freely. However, the computer is relatively "stupid", it can't directly understand these expressions, and must use a "compiler" to translate them, interpreting the idiomatic expressions into a large piece of relatively simple and easy-to-understand text, so that it can understand.

  Programmers don't even need to worry about the detailed content of these allusions, such as when and where they occurred and which specific characters were involved. They just need to have a general idea of when this allusion can be used. Anyway, there is still the "compiler" translator who will ultimately clarify the specific details with the computer.

  The benefits of this are obvious: programmers can save a lot of time and effort, and by using "clichés", they can quickly write the programs that are needed.

  However, this also has a big drawback. Because if programmers do not understand the origin of these "allusions", they cannot do some more delicate things. Just like lus before, he only learned basic and did not know what kind of machine code basic would eventually be translated into, nor did he understand the details of data transmission, so he could not write this program.

  This is actually a limitation caused by the basic restrictions, and its own design defects make it unable to operate these underlying things.

  And through this little program, Lus learned that under the Basic language, there was something called "machine code", and under machine code, there was another thing called "binary code".

  At this level, it's all about the hardware. "0" represents an open switch, while "1" represents a closed switch. As a seasoned ham, he was most familiar with such simple circuits.

  It wasn't until then that he realized computers were actually this simple. Viewing, welcome everyone to join

  Update the fastest Wu Dong Qian Kun

  Complete works txt download, full text free, e-book, remember 77 reading books