|
contur2
|
ALU — Arithmetic Logic Unit for the simulated CPU. More...

Go to the source code of this file.
Classes | |
| class | contur::ALU |
| Arithmetic Logic Unit — performs all computational operations. More... | |
Namespaces | |
| namespace | contur |
ALU — Arithmetic Logic Unit for the simulated CPU.
The ALU performs pure arithmetic and logic operations on register values. It is stateless — all inputs and outputs are passed explicitly. Division by zero is detected and reported via Result<RegisterValue>.
Definition in file alu.h.