Binary-Decimal Calculator Using Logic Gates in LBP2

3,102 views · Published 10 April 2011 · 2:43 · Indexed 12 November 2026

Channel: Numerical Jungle · 2011 · Gaming

Watch on YouTube

Screenshots of the guts: http://imgur.com/a/IYpku

The calculator accepts either binary or decimal input.  Any decimal input will be converted to binary, and vice versa.  Only accepts input up to 255 (11111111).  The binary numbers are used for all the operations.  The output is given in binary and then also converted back to decimal (long numbers take some time).  I designed all the decoders, encoders, input windows, and mathematics logic myself.

I'm currently working on subtraction... and I think division is basically recursive subtraction with a counter variable that increments once per subtraction until the remaining amount is too small, and there's your remainder.

The calculator is open for download if you have LBP2 and would like to explore the logic.

More from this channel