Skip to content
HTML JavaScript
Branch: gh-pages
Clone or download
Pull request Compare This branch is 13 commits ahead, 5 commits behind danieljabailey:gh-pages.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

#C1616 computer Javascript emulator

This is an emulator for the C1616 computer. It is based on the C88 computer by Nick Moriarty and Daniel Bailey, which used 8 bit words and had 8 memory locations.

A minimalist CPU architecture with only 256 bits of memory.

The original 8 bit version is implemented in an FPGA using VHDL, it is available here:

This is an emulator for a 16 bit version of that machine, implemented in Javascript.


Just open up the c1616.html file and enter a program by clicking on the memory bits to toggle them.

Run the program with the run and step buttons at the bottom.

The reset button will set the PC and main register to zero.


c1616.js is a file containing the emulator without the GUI. You can use this to make your own gui.

First get a c1616 object like this:

	c = new c1616();

Then you can set the memory which is an array of sixteen integers:

	c.mem=[224, 37, 6, 23, 64, 7, 1, 0];

Then run the program and update some kind of memory display:

			myDisplay = c.mem;
You can’t perform that action at this time.