16 lines
452 B
Rust
16 lines
452 B
Rust
mod simulator;
|
|
mod kernel;
|
|
|
|
use simulator::machine::Machine;
|
|
use simulator::mem_cmp;
|
|
|
|
fn main() {
|
|
let mut m = Machine::_init_machine();
|
|
let path = "memoryComp.txt".to_string();
|
|
let checker = mem_cmp::MemChecker::from(&path);
|
|
mem_cmp::MemChecker::fill_memory_from_mem_checker(&checker, &mut m);
|
|
//mem_cmp::Mem_Checker::print_Mem_Checker(&checker);
|
|
//Machine::print_memory(&mut m, 0x400000, 0x405000);
|
|
Machine::run(&mut m);
|
|
}
|