Now you know how a computer works. The basic concepts are actually rather simple. Of course, actually building a computer is an incredibly complex undertaking. Fortunately, we programmers can focus on programming them.
In the last section we learned that a computer command basically performs these three task:
- Read the instruction and data from memory.
- Perform a calculation.
- Store the result at another address.
Then the computer continues with the next command. Then the next. And so on. This is the programming of the computer.