Crazyman PC

What do you get when you mix a curiosity for exactly how computers work (down to the bit level) with the need to learn Vue and Vuex state management?

You get Crazyman Pc, an 8-bit computer simulation running in a web browser.

Screenshot of the Crazyman PC in action

And it works!

You can play with it in your browser by clicking here. It comes with two sample programs baked in to make it as easy as possible.

Sample program one adds the number 30 and the number 12 together and outputs the result, 42, in the decimal display.

Sample program two uses an infinite loop to add the number 8 to whatever is the current value in memory. When the value overflows the max value for 8 bits (255) the overflow is graceful and set bits are preserved.

To run a sample program:

  1. Click on the "LOAD SAMPLE PROG" or "LOAD SAMPLE PROG 2" buttons in the RAM section.
  2. Click the "RUN" button in the Clock section.
  3. Watch it go.

To reset and run another program:

  1. Click the "PC RESET" button in the Power section.

I have a few housekeeping todos to get through and the last few VERBS to add to the custom assembly language before it's Turing complete.

Have fun 💪

Resources

Tech

Node, Vuejs, Javascript, SASS