forked from Rativel/BurritOS
print_memory dans Machine
This commit is contained in:
@@ -24,7 +24,7 @@ pub fn load(path : &str, instruction_size: i32) -> Machine {
|
||||
let res = u64::from_str_radix(&line.unwrap(), 16);
|
||||
match res {
|
||||
Ok(value) => {
|
||||
Machine::write_memory(&mut machine, instruction_size, i, value);
|
||||
Machine::write_memory(&mut machine, instruction_size, i*instruction_size as usize, value);
|
||||
},
|
||||
_ => panic!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user