I was working on this fun project recently and thought I would share. A 20 bit calculator using wires. This is more of an interesting thought-provoking experiment than an actual gameplay related blueprint. Can be used to study the inner workings of a calculator and learn more about wires and circuits.
How it works?
At first it converts the decimal input numbers to BCD (binary coded decimals) and then it converts them binary numbers. It builds a shape to compress the binary number so it can be sent using only one wire. (5 layers, 4 quadrants, red quadrant is 0, uncolored is 1). Then it executes the required operator on the 2 binary numbers. Only 3 operators available yet (multiplication, subtraction, addition). Then converts the result back to decimal and shows it on a display. If the result is out of the possible range (0-999999) it shows an error.
Possible improvements in the future
- more operators (division, etc...)
- implementing registry to store numbers and button presses
- can be easily expanded to handle more digits