Merge branch 'decode_print' of https://gitlab.istic.univ-rennes1.fr/simpleos/burritos into decode_print

This commit is contained in:
Samy Solhi 2023-02-15 14:34:10 +01:00
commit b5690a7f57

View File

@ -107,11 +107,11 @@ impl Mem_Checker{
let current_line = line.unwrap(); let current_line = line.unwrap();
if i == 0 { if i == current_line.len()-2 {
//Lecture de PC //Lecture de PC
pc = string_hex_to_usize(&current_line); pc = string_hex_to_usize(&current_line);
} }
else if i == 1 { else if i == current_line.len()-1 {
//Lecture SP //Lecture SP
sp = string_hex_to_usize(&current_line); sp = string_hex_to_usize(&current_line);
} }