aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8e26888..cf0b4be 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -10,7 +10,10 @@ fn it_works() {
use std::path::Path;
println!("Test");
match binary::Binary::new_from_hex_file(Path::new("../riscv/kernel.hex")) {
- Ok(_) => println!("Ok"),
+ Ok(b) => {
+ let mut simulator = simulator::Simulator::new(1, b);
+ simulator.run();
+ },
Err(err) => println!("Error: {:?}", err),
}
}