From c6ddfc67dd16bd197580fbead9f454031384cc5a Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Mon, 25 Dec 2023 01:40:53 -0600 Subject: Add blink_hex subroutine --- pll.s | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pll.s') diff --git a/pll.s b/pll.s index 38573f7..bab31f2 100644 --- a/pll.s +++ b/pll.s @@ -63,6 +63,16 @@ vco_lock: delay_1s: ldr r3, =0x1fca055 // 33.3 * 10^6 (one-third of a second at 100MHz) 1: // 3 clock cycle loop - subs r3, r3, 1 // 1 clock cycle + subs r3, 1 // 1 clock cycle bne 1b // 2 clock cycles when taken - mov pc, lr + bx lr + +.type delay_quick, %function +.global delay_quick + +delay_quick: + ldr r3, =0x65b9ab +1: + subs r3, 1 + bne 1b + bx lr -- cgit v1.2.3