Created
January 4, 2015 16:49
-
-
Save Jartza/2977346bc34b7c4d463e to your computer and use it in GitHub Desktop.
Blink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
start: | |
sbi _SFR_IO_ADDR(DDRB), 4 | |
blink: | |
sbi _SFR_IO_ADDR(PINB), 4 | |
ldi ZH, 20 | |
loop: | |
subi r18, 1 | |
brne loop | |
sbiw ZL, 1 | |
brne loop | |
rjmp blink |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment