My machine can do simple math it can add or subtract numbers ranging from 128 to 1. The highest it can add is up to 511. How the machine works is that there are buses going into 32 XOR Gates. There are two layers of 16 XOR Gates each. Each layer uses Simple binary adders that are modified to match their command. The machine then uses 8 Pistons to turn off adding if you want to subtract and vise versa. It then goes into an output where it will wait stay until cleared. The Machine uses A+B, A-B, and B+A. The machine uses : 42 inverters, 32 XOR gates, 16 prisons, and 8 Bits and takes 7 ticks to complete the operation. The subtraction works by inverting A and sending the signal into Pistons attached to redstone blocks which will extend and send it to the output The addition doesn't invert anything and uses standard busses
To Use the machine, you must choose numbers from 128 to 1 to add or subtract. Then, use the lever to configure adding, or subtracting. Next, flip the switches with A first to send bits to the adders. The adder will process the information and output the answer to the right of the inputs on redstone lamps. Refill all the levers and use the machine again.
Comments
:P
i made a 32 bit version with carry in, it was a very long process, by myself #foreveralone
:O
10/10 would approve