Reustmann - a Von Neumann architecture
Reustmann is a Von Neumann architecture in Rust. All rights goes to the dave miller Iota machine.
I just recreate it in Rust.
The Reustmann Documentation
How to
The hello_world.rm
program
Gp..OOOOOOOOOOOOHTFello World!
First create a program, from a file for example
extern crate reustmann;
use File;
use Program;
let ignore_last_newline = true;
let file = open.unwrap;
// it accept anything implementing the `std::io::Read` trait
let program = new.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_and_reset.unwrap;
Launch it, launch it now !!!
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
loop
You can have debug informations at any moment
// put this in the previous match, at the good place ;)
println!;
TODO
- make interpreter unit tests for each instruction (add
coveralls.io
) - add launch options to executable (
--input
,--output
...) - change interpreter command names in the debugger, make them more clear
-
format!
correctlypc_side
andsp_side
on the debugger - add rustyline autocompletion for commands, command options...