changed Mem_Checker method
This commit is contained in:
parent
3269fa353f
commit
d76047e48b
@ -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(¤t_line);
|
||||
}
|
||||
else if i == 1 {
|
||||
else if i == current_line.len()-1 {
|
||||
//Lecture SP
|
||||
sp = string_hex_to_usize(¤t_line);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user