What are the steps involved in following a particular instruction given by the CPU?
What are the steps involved in following a particular instruction given by the CPU?
The following steps are followed-
- The instruction pointer tells the instruction fetch where in the memory the instruction is.
- The fetch takes the instruction and gives it to the decoder, which determines the steps that are necessary to fulfill the instructions.
- The information is then sent to the ALU, which performs the instructions that need to be performed. This includes adding, subtracting, or manipulating the data further.
- Finally, the instructions are sent out into the computer where they are needed.