Add intro message/warning

This commit is contained in:
n loewen 2023-07-25 15:33:24 +01:00
parent 9aed9e5e8b
commit 39b7e9e2ac
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,13 @@
// This is a sketch of a simulator for my paper computer,
// made for two purposes:
//
// (1) figuring out the basic structure for a simple simulator
// (2) testing some simple programs (hopefully)
//
// NOTA BENE: this simple version makes naive use of
// Javascript numbers for opcodes, and a Javascript array
// for the computer's "memory." This may cause some problems.
function CPU(mem) {
this.memory = mem;
this.running = false;