;**********************************************************
		INCLUDE	"P16F84A.INC"
		LIST 	P=16F84A, R=DEC
		ERRORLEVEL-302
		__CONFIG   _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
;..........................................................

	ORG	0
	GOTO	START
	ORG	4
	
	BCF	INTCON,INTF					
	RETFIE	


START	BSF	STATUS,RP0
	BSF	OPTION_REG,INTEDG	;PRERUSENI NA NABEZNOU HRANU/ DEFAULTNE JE
	BCF	STATUS,RP0

	BCF	INTCON,INTF
	BSF	INTCON,INTE
;	BSF	INTCON,GIE		;POVOLIT POKUD JE POZADOVANO PRERUSENI

	BCF	INTCON,INTF
	NOP
	SLEEP
	NOP
	
	NOP			;PROGRAM 

	GOTO 	$-5





	GOTO	$
;*****************************************************************
	END
