aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: fd60531550bc9df3519f9cd71524bf0a6960d4b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod isa;
pub mod binary;
pub mod memory;
pub mod simulator;

#[test]
fn it_works() {
    use std::path::Path;
    match binary::Binary::new_from_hex_file(Path::new("../riscv/kernel.hex")) {
        Ok(b) => {
            let mut simulator = simulator::Simulator::new(1, b);
            simulator.run();
        },
        Err(err) => println!("Error: {:?}", err),
    }
}