diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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), + } } |