1
0
forked from Rativel/BurritOS

Loader seem to work, be seem we have a problem with jalr

This commit is contained in:
Quentin Legot
2023-03-28 21:26:58 +02:00
parent 7dff3bcdd9
commit 703c8e5448
3 changed files with 10 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ pub fn load(path: &str, machine: &mut Machine, start_index: usize) -> Result<(),
for i in 0..instructions.len() {
machine.write_memory(4, 4 * i + start_index, instructions[i] as u64);
}
#[cfg(debug_assertions)]
println!("{:04x?}", instructions); // only print loaded program in debug build
// #[cfg(debug_assertions)]
// println!("{:04x?}", instructions); // only print loaded program in debug build
Ok(())
}