;Switch-1 Program for 5x7 Video Screen
;PIC16F84 and only F84 chip
;Detects ButtonA and illuminates a LED


Start   ORG 0x00
	BSF 03,5
	MOVLW 1Ch	;Make RA2, RA3 and RA4 inputs
	MOVWF 05h
	MOVLW 00h	;Put 00 into W	
	MOVWF 06h	;Make all RB lines output
	BCF 03,5	;Go to Page0 for programming

	MOVWF 06h	;Put 00 into output port to
                        ;    turn off all LEDs

Loop1	BTFSC 05,2	;Test button A to see when the
	GOTO Loop1	;    line is LOW
Loop2	MOVLW 01h	;Put 1 into W
	MOVWF 06h	;output 1 to the display
	GOTO Loop2	;do-nothing in a loop
	
	END
		