improved debuger

This commit is contained in:
Mwa
2026-03-16 19:02:00 +01:00
parent 410c54c2f8
commit a43277c159

View File

@@ -416,15 +416,17 @@ fn main() -> Result<(), Error> {
if next.len() >= 2 {
match parse_int::parse::<u32>(next[1]) {
Ok(v) => {
while !simulation.error && simulation.pc != (v as usize/4) {
while !simulation.error
&& simulation.pc != (v as usize / 4)
{
simulation.step();
}
false
},
}
Err(e) => {
println!("{e}");
true
},
}
}
} else {
println!("{HELP_MSG}");
@@ -464,4 +466,5 @@ run - run program until exit / error (alias r)
context - print context (alias c)
print n - print ram content at address n and next 8 (alias p)
up - run until the nex ret is reached (alias u)
to n - tun until PC = n (alias t)
";