diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2023-12-25 01:40:53 -0600 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2023-12-25 01:40:53 -0600 |
commit | c6ddfc67dd16bd197580fbead9f454031384cc5a (patch) | |
tree | b1e72fa3e3fe5277495639e5eb810b4050ebaa2f /pll.s | |
parent | ad75550260068087c4351a6a197e10c02fe3b399 (diff) |
Add blink_hex subroutine
Diffstat (limited to 'pll.s')
-rw-r--r-- | pll.s | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |