add tests run programs

This commit is contained in:
Baptiste
2023-03-08 17:58:38 +01:00
parent 2cd7980cd0
commit 075d6cb737
3 changed files with 172 additions and 23 deletions

View File

@ -5,10 +5,10 @@ use simulator::mem_cmp;
fn main() {
let mut m = Machine::_init_machine();
let path = "memoryJump.txt".to_string();
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(m);
Machine::run(&mut m);
}