From ccf251974e3c1feeef24e2026fef3e693e43c9ab Mon Sep 17 00:00:00 2001 From: rubenasplund <ruben.asplund@hotmail.com> Date: Fri, 4 Dec 2020 11:55:31 +0100 Subject: [PATCH] Exercise D --- examples/rtt_timing.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/rtt_timing.rs b/examples/rtt_timing.rs index a0fadd6..4ac047a 100644 --- a/examples/rtt_timing.rs +++ b/examples/rtt_timing.rs @@ -129,7 +129,16 @@ fn timed_loop() -> (u32, u32) { // // Open the file in you editor and search for the `timed_loop`. // -// [Assembly for function `timed_loop` here] +// 08000232 <timed_loop>: +// 8000232: movw r1, #4100 +// 8000236: mov.w r2, #1000 +// 800023a: movt r1, #57344 +// 800023e: ldr r0, [r1] +// 8000240: subs r2, #1 +// 8000242: nop +// 8000244: bne #-8 <timed_loop+0xe> +// 8000246: ldr r1, [r1] +// 8000248: bx lr // // Locate the loop body, and verify that it makes sense // based on the information from the technical documentation: -- GitLab