An assembler program has been written for a PIC 16F84 microprocessor which ‘flashes LEDs’ through a left or right sequence. The sample code is attached. can you fill in the missing comment lines

; U19A2T1-4.asm

; blinks LEDs on outputs in a rotating pattern, with input option to reverse direction

;Set microprocessor as 16F84

INCLUDE <P16F84.INC>

; Setup processor configuration

__config _RC_OSC & _WDT_OFF & _PWRTE_ON

; label 2 symbols as memory addresses for counting loops

J equ 1F

K equ 1E


SETUP:

org 0 ;

BANKSEL TRISA ;

clrf TRISA ;

bcf STATUS , RP0 ;

bcf STATUS , RP1 ;

movlw 0x01 ;

movwf PORTB ;

bcf STATUS,C ;


ROTATE:

btfss PORTA,0 ;

goto RR

rlf PORTB,f ;

goto DELAY

RR: rrf PORTB,f ;


DeLAY:

movlw 0x32 ;

movwf J ;

jloop: movwf K ;

kloop: decfsz K,f ;

goto kloop

decfsz J,f ;

goto jloop


DIRECTION:

movlw 0x02 ;

xorwf PORTA,0;

goto ROTATE ;

end ;