This is a massive WIP.
This is an attempt to keep things somewhat organized and well-defined in my own head.
WorkingTitle is an assembly-type programming language inspired heavily by and based loosely on redcode.
Copy A-val to B-target
ADD replaces the B-target with the sum of the A-value and the B-value
Continue execution at A
Fork a new thread at A
The Core class simulates the machine that runs the programs. Each programm runs as a Process that consists of at least one Thread.
The Process handles the thread-selection and keeps the program counter for each thread. It determines which instruction will be executed.
The entire code is structured in a way to make changes to the instruction set and adress modes (which pretty much covers all relevant changes) can be achieved with minimal changes in the code. At the moment the only files that need to be changed are listed below.
Address mode changes
rc-address-modes.js: Contains the address mode listing and the ALU
Instruction set changes
rc-instruction-set.js: Contains the definition of all instructionsrc-core.js: The core implementation contains the jump table for the different instructions. This will extracted in the future.