PA3040
Advanced Member level 3
Code:
status equ 0x03
portb equ 0x06
trisb equ 0x86
start goto main
main clrwdt
call sys_init
call led_rotate
goto main
led_rotate bsf portb,0
loop rlf portb,1
btfss portb,7
goto $-2
rrf portb,1
btfss portb,0
goto $-2
goto loop
sys_init bsf status,5
movlw 0x00
movwf trisb
bcf status,5
clrf portb
return
end
Dear All above program I written in assembly, rotate from RB7 to RB0 and again RB0
to RB7 and loop forever
can I have the same program above In Micro C Language
Thanks in advance