    LISTING	2

    ; TUTA2.ASM
    ; setting Port B to output mode and turn on each LED

     	ORG 0		 ; Reset vector
    	GOTO 5		 ; Goto start of program
     	ORG 4		 ; Interrupt vector
    	GOTO 5		 ; Goto start of program
    	ORG 5		 ; Start of program memory
     	CLRF 6		 ; set all Port B pins to logic 0
     	BSF 3,5		 ; instruct program that a Page 1
    		 	 ; command comes next
     	CLRF 6		 ; set all Port B pins as outputs
     	BCF 3,5		 ; instruct program that a Page 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