contur2
Loading...
Searching...
No Matches
alu.h File Reference

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

Include dependency graph for alu.h:

Go to the source code of this file.

Classes

class  contur::ALU
 Arithmetic Logic Unit — performs all computational operations. More...

Namespaces

namespace  contur

Detailed Description

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.