Reustmann - a Von Neumann architecture
Reustmann is a Von Neumann architecture in Rust. I was inspired by the dave miller Iota machine.
I just recreate it in Rust.
How to
The hello_world.rm
program, make sure you don't add a final newline
Gp..OOOOOOOOOOOOHTFello World!
First create a program, from a file for example
extern crate reustmann;
use File;
use Program;
let program = from_file.unwrap;
Then use this program to fill the interpreter memory
use Interpreter;
let arch_length = 50; // memory length
let arch_width = 8; // word size
let mut interpreter = new.unwrap;
interpreter.copy_program.unwrap;
Then you can run it by using an interpreter
use Statement;
use op_codes;
use ;
// use std::io::sink; // for no output
let mut input = empty; // no input data needed
let mut output = stdout; // output on the standard output
loop
You can have debug informations at any moment
// put this in the previous match, in the right position!
println!;