print_memory dans Machine

This commit is contained in:
Baptiste
2023-03-01 15:11:35 +01:00
parent f6ff30b63c
commit 73c49414ff
5 changed files with 19 additions and 10 deletions

View File

@ -1,13 +1,11 @@
mod simulator;
use simulator::machine::Machine;
use simulator::mem_cmp;
use simulator::{mem_cmp, loader};
fn main() {
let mut m = Machine::_init_machine();
let path = "test_file_section.txt".to_string();
let checker = mem_cmp::Mem_Checker::from(&path);
mem_cmp::Mem_Checker::fill_memory_from_Mem_Checker(&checker, &mut m);
let mut m = loader::load(&path, 4);
Machine::print_memory(&mut m);
Machine::run(m);
mem_cmp::Mem_Checker::print_Mem_Checker(&checker);
}