An emulator of a simple 8-bit adder/subtractor (Note: this means that the only valid values are from 0 - 255, or -128 - 127) This is how all your devices can do addition and subtraction! (on a bigger scale though) Click the yellow buttons to set the value of input a Click the blue buttons to set the value of input b The green squares will update according to your calculations (Note: these values are represented in binary, the decimal values are the variable displays beside the rows) The subtract? variable controls whether to subtract or not. The "two's complement?" variable controls whether or not to use negative decimal numbers. Fun Fact: If a programmable device can perform calculations, it is a computer ;)
All code made by me :) Some google searches to make sure I was doing these correctly (it is kinda difficult!) Made for the SDS: Power Up!