Skip to content

Commit

Permalink
Corrected comment error in assembly-blink example (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janidai authored Oct 28, 2024
1 parent 6b8b486 commit 26b79f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/assembly-blink/src/main.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ blink:
delay_ms:
; Delay about (r25:r24)*ms. Clobbers r30, and r31.
; One millisecond is about 16000 cycles at 16MHz.
; The inner loop takes 4 cycles, so we repeat it 3000 times
; The inner loop takes 4 cycles, so we repeat it 4000 times
ldi r31, hi8(4000)
ldi r30, lo8(4000)
1:
sbiw r30, 1
brne 1b
sbiw r24, 1
brne delay_ms
ret
ret

0 comments on commit 26b79f8

Please sign in to comment.