Add section flag support, loader now ready to run binary files

This commit is contained in:
Quentin Legot
2023-04-01 00:14:09 +02:00
parent 0a744f0f94
commit 8239079130
3 changed files with 51 additions and 10 deletions

View File

@ -188,9 +188,9 @@ impl Machine {
}
println!("________________SP________________");
let sp_index = self.int_reg.get_reg(2);
for i in 0..5 {
/* for i in 0..5 {
println!("SP+{:<2} : {:16x}", i*8, self.read_memory(8, (sp_index + i*8) as usize));
}
} */
println!("##################################");
}