Source Code
Hello
ldi (Load Imidiate) r16, 0b11111111 (or 0x1f[forhex])
That will load 8-bit into register 16. Notation of such commands is alway-> target, source
out PORTB, r16
Did you define DDRB fully as exit?
Do so in main:
ldi r16, 0b11111111
out DDRB, r16
for the counter
ldi r16, 0b00000000
ldi r17, 0b00000000
ldi r18, 0b00000001
But that wont get your LED blink'in. I suggest you wont even see it flash. The Micro will work with its Core speed. Estimated 10 or 24 Mhz
You will need to set a routine (a counter) and a bit rotation to see it blink.
mainloop:
wdr
echo:
inc r16
brne wait
inc r17
brne wait
rol r18
out PORTB, r18
wait:
rjmp mainloop