CPU - Instruction (Machine Language Word)
Table of Contents
1 - About
The CPU requires a fixed number of clock ticks (or clock cycles) to execute each instruction.
2 - Articles Related
3 - Implementation
Each instruction is implemented via a circuit.
You can see them as function name.
4 - Pointer
The instruction pointer holds the location of the next instruction, and increments itself after every instruction. So basically, the CPU reads the instruction pointer, fetches the next instruction, does it, increments the instruction pointer and then goes back to step one.
5 - Example
5.1 - Math
With logic gates, it's possible to build a machine that perform the following instructions when the following code input are received.
Instruction Code "add a number to another number" 00000001 "subtract a number from another number" 00000010
5.2 - x86 architecture
- the pattern 10100000 means add two numbers,
- the pattern 000000101 means halt a computer
More, see X86_instruction_listings