We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8b486 commit 26b79f8Copy full SHA for 26b79f8
examples/assembly-blink/src/main.S
@@ -20,12 +20,12 @@ blink:
20
delay_ms:
21
; Delay about (r25:r24)*ms. Clobbers r30, and r31.
22
; One millisecond is about 16000 cycles at 16MHz.
23
- ; The inner loop takes 4 cycles, so we repeat it 3000 times
+ ; The inner loop takes 4 cycles, so we repeat it 4000 times
24
ldi r31, hi8(4000)
25
ldi r30, lo8(4000)
26
1:
27
sbiw r30, 1
28
brne 1b
29
sbiw r24, 1
30
brne delay_ms
31
- ret
+ ret
0 commit comments