CPU Architecture
Components Registers We can combine registers to reduce the amount of wires needed. Using a data bus (wiring at the top) and a binary decoder, we can select which register to read/write to. Memory Assembly Assembly is a human-friendly representation of code: binary values that a computer can understand. An assembler converts ASM instructions into machine code, which is given to the CPU as input. Arithmetic Operations For example, a simple computer architecture could use 00 to represent arithmetic operations. To decide which type of operation to execute (subtraction, multiplication, addition, etc), the 3rd and 4th bits could be used. Using a index, we can build an inefficient, but simple circuit to do this. This type of circuit is an Arithmetic Logic Unit (ALU). ...