eli5: How does a cpu READ or know that it has to READ 0s and 1s from a storage device ( low level transistor scale)?

209 views

eli5: How does a cpu READ or know that it has to READ 0s and 1s from a storage device ( low level transistor scale)?

In: 0

4 Answers

Anonymous 0 Comments

A device, within the CPU, called the program counter keeps track of which instruction the CPU should execute next. One at a time, the CPU is given the next instruction. That instruction tells the CPU to do certain very basic things such as read from a location (given by a numerical address), write to a location, multiply two numbers in two different locations etc.

A read operation copies the value from a given address (contained within the instruction) to a local register within the CPU called an accumulator.

A write operation is the reverse. It copies the value in the local accumulator to the address that was given within the instruction.

You are viewing 1 out of 4 answers, click here to view all answers.