Skip to content

Instantly share code, notes, and snippets.

@torpedo87
Created February 4, 2020 13:48
Show Gist options
  • Save torpedo87/0fefba7030b867c6ad4fc2d98d981b25 to your computer and use it in GitHub Desktop.
Save torpedo87/0fefba7030b867c6ad4fc2d98d981b25 to your computer and use it in GitHub Desktop.
cc
CHIP Computer {
IN reset;
PARTS:
// Put your code here:
Memory(in=Mout, load=Mwrite, address=address, out=outmem);
CPU(inM=outmem,instruction=instruction, reset=reset, outM=Mout, writeM=Mwrite, addressM=address, pc=pcout);
ROM32K(address=pcout, out=instruction);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment