Skip to content

Commit d727e55

Browse files
committed
Explain why a needless jmp is here
1 parent b8e8c92 commit d727e55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/pico-examples/hello.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
loop:
1515
pull
1616
out pins, 1
17+
; This program uses a 'jmp' at the end to follow the example. However,
18+
; in a many cases (including this one!) there is no jmp needed at the end
19+
; and the default "wrap" behavior will automatically return to the "pull"
20+
; instruction at the beginning.
1721
jmp loop
1822
"""
1923

0 commit comments

Comments
 (0)