movw r0, #0x0500 @ you repeat your loop 83232000 times movt r0, #0x04F6.loop: nop @ here is you nop nop nop nop nop nop nop nop smuad r1, r1, r1 @ you can be sure the ending code take 5 cycles. nop nop smuad r2, r2, r2 nop subs r0, r0, #1 smuad r3, r3, r3 bgt .loop bx lr
movw r0, #0xB400 movt r0, #0x04C4
movw r0, #0x0500 movt r0, #0x04F6