A terrible register architecture machine emulator, written in rust. Compiles to standalone executable or webassembly.
Go to file
Raphael Jacobs e21e0bc03e cargo fmt 2022-11-02 11:00:25 +01:00
css Code polishing, actual production ready version 2022-10-13 15:15:45 +02:00
rammodel cargo fmt 2022-11-02 11:00:25 +01:00
src added support for indirect reference 2022-11-02 11:00:06 +01:00
.gitignore minor typo, updated gitignore. 2022-11-01 12:24:39 +01:00
ISA.md added support for indirect reference 2022-11-02 11:00:06 +01:00
build.sh added some form of html isa documentation. Just converting the markdown one, which will stand as reference documentation and spec forever. 2022-11-01 12:08:15 +01:00
index.html added some form of html isa documentation. Just converting the markdown one, which will stand as reference documentation and spec forever. 2022-11-01 12:08:15 +01:00
package.json Big commit: barely functional version. Added syntax highlighting in the browser, parsing errors being highlighted, cpu errors being displayed (not highlighted yet), minor backend improvements, massive frontend improvements. 2022-10-12 14:36:23 +02:00
readme.md fixing link, second experiment 2022-10-07 12:17:47 +02:00
serve.py first commit 2022-10-06 23:47:05 +02:00
tsconfig.json first commit 2022-10-06 23:47:05 +02:00
webpack.config.js Big commit: barely functional version. Added syntax highlighting in the browser, parsing errors being highlighted, cpu errors being displayed (not highlighted yet), minor backend improvements, massive frontend improvements. 2022-10-12 14:36:23 +02:00

readme.md

What?

This is a simple random-access-machine emulator (not to be confused with random access memory) that I made for university.

Oh, also, it doesn't entirely work yet.

Install?

Depending on your needs, there are two options. You need cargo (and Rust) installed in both cases, so get that.

Cli usage

To use the cli, simply run these commands:

git clone http://git.dekedin.me/raphy/RAM-emu.git
cd RAM-emu/rammodel
cargo run testprograms/program1 1 2

This will run the first example and add the two numbers there. You could install the program "system-wide" with cargo install . but I don't know why you would want to do that.

Webpage, woo!

Besides cargo, you also need npm and wasm-pack.

git clone http://git.dekedin.me/raphy/RAM-emu.git
cd RAM-emu/
npm install
./build.sh

Usage?

Cli usage

The command line program currently takes a single required argument, namely a text file containing a program. Examples can be found in testprograms/. Input can be supplied by writing all the input numbers after the input program.

An informal description of the whole instruction set can be found in ISA.md.

Webpage usage

idk it's a static website lol

use nginx or whatever

This is very unprofessional. I don't get it!

Open a pull request. I'll document everything properly in a bit.