improved debuger
This commit is contained in:
@@ -412,6 +412,25 @@ fn main() -> Result<(), Error> {
|
||||
}
|
||||
false
|
||||
}
|
||||
"t" | "to" => {
|
||||
if next.len() >= 2 {
|
||||
match parse_int::parse::<u32>(next[1]) {
|
||||
Ok(v) => {
|
||||
while !simulation.error && simulation.pc != (v as usize/4) {
|
||||
simulation.step();
|
||||
}
|
||||
false
|
||||
},
|
||||
Err(e) => {
|
||||
println!("{e}");
|
||||
true
|
||||
},
|
||||
}
|
||||
} else {
|
||||
println!("{HELP_MSG}");
|
||||
true
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
println!("{HELP_MSG}");
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user