Peter Mawhorter
| invA | negB | Op1 | Op0 | R |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | A AND B |
| 0 | 0 | 0 | 1 | A OR B |
| 0 | 0 | 1 | 0 | A + B |
| 0 | 1 | 1 | 0 | A - B |
| 1 | 1 | 0 | 0 | A NOR B |
(other combinations are possible)
The ALU is the heart of the computer: everything a computer does is a transformation of data, and the ALU is what performs those transformations.
Remember that “clock” could be “write data pulse.”