diff options
author | David Li <li.davidm96@gmail.com> | 2015-12-15 16:25:58 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2015-12-15 16:25:58 -0500 |
commit | 98475b71bcf5a89c8c1c4c59a0c9f9ade74494f5 (patch) | |
tree | b97cf27b7e7ed29831992880db1378b876e80f87 /src/lib.rs | |
parent | 391dceacc280d6a339b36a85e4f0665da992b91e (diff) |
Load hexdump of ELF
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), + } } |