2023-01-11 14:58:12 +01:00
|
|
|
mod simulator;
|
2023-02-15 14:56:11 +01:00
|
|
|
mod kernel;
|
2023-02-15 18:10:08 +01:00
|
|
|
pub mod utility;
|
2023-01-11 14:58:12 +01:00
|
|
|
|
|
|
|
use simulator::machine::Machine;
|
2023-03-01 16:12:46 +01:00
|
|
|
use simulator::mem_cmp;
|
2022-10-19 16:39:38 +02:00
|
|
|
|
2022-10-05 16:30:21 +02:00
|
|
|
fn main() {
|
2023-03-01 16:12:46 +01:00
|
|
|
let mut m = Machine::_init_machine();
|
2023-03-08 17:58:38 +01:00
|
|
|
let path = "memoryComp.txt".to_string();
|
2023-03-08 13:05:59 +01:00
|
|
|
let checker = mem_cmp::MemChecker::from(&path);
|
|
|
|
mem_cmp::MemChecker::fill_memory_from_mem_checker(&checker, &mut m);
|
2023-03-05 23:49:28 +01:00
|
|
|
//mem_cmp::Mem_Checker::print_Mem_Checker(&checker);
|
|
|
|
//Machine::print_memory(&mut m, 0x400000, 0x405000);
|
2023-03-08 17:58:38 +01:00
|
|
|
Machine::run(&mut m);
|
2022-10-05 16:30:21 +02:00
|
|
|
}
|