changed Mem_Checker method

This commit is contained in:
Rémi Rativel 2023-02-15 14:22:31 +01:00
parent 3269fa353f
commit d76047e48b

View File

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