Switch branches/tags
Nothing to show
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.
Permalink
Failed to load latest commit information.
images
.gitignore
LICENSE
Readme.md
c1616.js
index.html

Readme.md

#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: https://github.com/danieljabailey/C88

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

##Usage

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.

##Library

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:

	setInterval(
		function(){
			c.step();
			myDisplay = c.mem;
		},1);