This is about the simplest possible computer and the simplest possible computer simulation. This computer only understands 2 instructions: ON and OFF. If the next instruction is “ON“, then it will turn the light on. If the next instruction is “OFF“, then it will turn the light off. This computer is so simple that it’s easy to write programs in binary with 1‘s and 0‘s. Here’s what the simulation looks like running a 16-instruction program:
You can also download this simple simulation below. It will be a “ZIP” file which can be unpacked with most operating systems. The unpacked file will be named Simple_1Bit_Light_Binary_Only.html. If you double click on that file it should open the simulation in your web browser.
To run the simulation, enter a short program in the “Binary Code” box on the left. Try the pattern 01011100 which will give a short blink followed by a longer blink (as shown in the real hardware video at the top of this page). After you type in the program, click the “Load Program” button to copy the program into Memory (the box in the middle). Then click the “Run/Stop” button (upper right) to make the computer actually run the program from Memory. It should look similar to the simulation above (depending on your program). You can speed it up by changing the number of instructions per second using the selection button below the blinking light. Try using 4 instructions/sec to approximate the speed of the hardware video. Try out other patterns like the one in the simulation above (0100101011010010). Make a “strobe light” with a program like 000000010000000. Experiment with running at different speeds. You can stop and restart the program with the “Run/Stop” button, and you can use the “Step” button to step through each instruction when the computer is stopped.
Play with it.It’s all software, so you can’t hurt anything!