ALU is a Rust playground for binary math, logic gates, and arithmetic operations.
Originally started as binarySeries, it grew into a 32-bit ALU simulation inspired by Nand2Tetris (Ch. 1–3).
- 32-bit binary add, subtract, multiply, divide
- Overflow/borrow flag support
- Bitwise gates (AND, OR, XOR, NAND)
- Integer ↔ bit converters
- Unit-tested per module
This project was built as a foundation exercise to deepen my understanding of binary arithmetic, flags, and low-level system design in Rust.
git clone https://github.com/Lmpkessels/alu.git
cd alu
cargo testNavigate through folders by topic.
src/
├── adders/ # Binary adders, subtractors, multipliers, dividers
├── alu/ # Arithmetic Logic Unit
├── gates/ # Logic gates (AND, OR, XOR, NAND, etc.)
├── operators/ # Integer–bit converters, transformations
Each folder contains its own logic and tests. Run
cargo testto validate any module.
This project is licensed under the MIT License.
© 2025 Luuk Kessels
This project is currently in maintenance mode, but I may add new features in the future if they support my goals.