==== 4 bit computer ==== ===BINARY CONVERSION IN NOTES=== This is an example of a simple adder APU (Arithmetic processing unit). Usually you would have many of these inside of a cpu but for this example I just put the APU To use it, press the red switches above the bulbs to give input to the APU. Each row of switches correspond to one input. These then flow through the APU and produce an output, in this case the numbers are added. This is what they call "binary" as each switch can only be on or off. Its 4 bit because the input and output can only handle 4 bits of data. Side note - Inside I used a series of lists named APU# Registers. These are not actual registers but the outputs for the logic gates.
Programmed by BLUTUE I used this indispensable explanation from Electronics Tutorials https://www.electronics-tutorials.ws/combination/comb_7.html 4 bit conversion table: 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 10 1010 11 1011 12 1100 13 1101 14 1110 15 1111 If you add any two numbers and the result is more than 15 you will get an overflow error. As you can tell a 4 bit cpu is very limited as it can only count 16 numbers ()