From e2a20dedc354c0b8d2e5253ffd4ac22d2b2898aa Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 7 Sep 2026 23:19:53 +0200 Subject: vnf: display also the break mark on report() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When reporting the final instruction, if that was actually a brk (and hence we stopped because of it), show the breaking mark as that could be relevant when debugging. Signed-off-by: Miquel Sabaté Solà --- lib/vnf/src/lib.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/vnf/src') diff --git a/lib/vnf/src/lib.rs b/lib/vnf/src/lib.rs index c9ae1a0..534fc1c 100644 --- a/lib/vnf/src/lib.rs +++ b/lib/vnf/src/lib.rs @@ -577,7 +577,15 @@ impl Machine { } if !self.active { - println!(""); + if matches!( + self.current_instruction.identifier, + InstructionIdentifier::Brk + ) && let Some(brk) = self.status_register.break_mark + { + println!(" (break mark = ${:02X})", brk); + } else { + println!(""); + } } } -- cgit v1.2.3