;Test2 for 5x7 Video Screen
;Program for PIC16F84 and only F84 chip
;Jumper between collector and emitter of first transistor
;Botton left-hand LED flashes at 2Hz



Start   ORG 0x00
	BSF 03,5	;Go to page1 for setting-up the ports
	MOVLW 00h       ;Put 00 into W             
	MOVWF 05h       ;Make all RA lines output        
	MOVWF 06h       ;Make all RB lines output
	BCF 03,5	;Go to Page0 for programming
	MOVLW 02h       ;Put 02 into W 
	MOVWF 05h       ;    to reset the 4017

Flash	MOVLW 01	;Put 1 into W
	MOVWF 06h	;   and output to turn on LED
	CALL Delay	;Call delay
	MOVLW 00	;Put 00 into W
	MOVWF 06h	;To turn off LED
	CALL Delay	;Call delay
	GOTO Flash	;Repeat cycle


Delay 	MOVLW 03
	MOVWF 1Ah
Delay1	DECFSZ 1Bh,1
	GOTO Delay1
	DECFSZ 1Ch,1
	GOTO Delay1
	DECFSZ 1Ah,1
	GOTO Delay1
	RETURN


	END
			