; setting Port B to output mode and turn on each led
ORG 0 ; Reset Vector address
GOTO 5 ; go to PIC address location 5
ORG 4 ; Interrupt Vector address
GOTO 5 ; go to PIC address location 5
ORG 5 ; Start of Program Memory at location 5
clrf 6 ; set all Port B pins to logic 0
bsf 3,5 ; instruct program that a Bank 1 command comes next
clrf 6 ; set all Port B pins as outputs
bcf 3,5 ; instruct program that a Bank 0 command comes next
bsf 6,0 ; set Port B pin 0 to logic 1
bsf 6,1 ; set Port B pin 1 to logic 1
bsf 6,2 ; set Port B pin 2 to logic 1
bsf 6,3 ; set Port B pin 3 to logic 1
bsf 6,4 ; set Port B pin 4 to logic 1
bsf 6,5 ; set Port B pin 5 to logic 1
bsf 6,6 ; set Port B pin 6 to logic 1
bsf 6,7 ; set Port B pin 7 to logic 1
end ; final statement