This is a Binary adder. [A] - Set top number (Multiple-bit Binary) [B] - Set bottom number (Multiple-bit Binary) [C] - Set Carry-in (Single Bit, 0 or 1) [Space] - Evaluate There may be some issues, but I haven't found any yet.
What is this? This takes the functionality of a full Ripple Carry Adder circuit and turns it into simple code. Notes, A and B must be the same length and carry-in is a single bit In the future: Implement Zero-fill Make gate-level simulation Make subtraction possible (Flip and add 1) Binary to Decimal conversion Full ALU?