Jag har ett problem att få ett "rinnande ljus" på 7st lysdioder med hjälp av rlf kommandot, jag får det helt enkelt inte att fungera då jag är rätt ny på detta med att programmera

Är det någon som har tips hur jag ska skriva koden?
main
movlw b'01111111' ; 1=Släckt / 0=Tänd
movwf portc ; PortC
call wait ;Väntar ett tag
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
call wait
call wait
rlf portc,1
goto main
end
Kod: Markera allt
main
movlw b'01111111' ; 1=Släckt / 0=Tänd
movwf portc ; PortC
call wait ;Väntar ett tag
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
call wait2
rlf portc,1
goto main
wait2
call wait
call wait
return
end
Kod: Markera allt
shift_led macro
rlf portc,1
call wait2
endm
main
movlw b'01111111' ; 1=Släckt / 0=Tänd
movwf portc ; PortC
call wait ;Väntar ett tag
shift_led
shift_led
shift_led
shift_led
shift_led
shift_led
shift_led
shift_led
shift_led
goto main
wait2
call wait
call wait
return
end
Kod: Markera allt
main
movlw b'01111111' ; 1=Släckt / 0=Tänd
movwf portc ; PortC
call wait
loop
rlf portc,1
btfss status, c
goto main
call wait2
goto loop
wait2
call wait
call wait
return
end