aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f710c03..8e26888 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,4 @@
+#![feature(as_slice)]
mod isa;
mod binary;
mod memory;
@@ -6,4 +7,10 @@ mod simulator;
#[test]
fn it_works() {
+ use std::path::Path;
+ println!("Test");
+ match binary::Binary::new_from_hex_file(Path::new("../riscv/kernel.hex")) {
+ Ok(_) => println!("Ok"),
+ Err(err) => println!("Error: {:?}", err),
+ }
}