;A SMALL PROGRAM TO SHOW PIC16C71 START UP ROUTINE. ALL IT DOES IS FLIP THE RB
;PORT ON AND OFF.


		device	XT_osc,wdt_off,PWRT_OFF,protect_off

	ORG	0h		;SET ADDRESS FOR RESET VECTOR
	JMP	START		;WHERE TO GO ON RESET
	ORG	5h		;SET START ADDRESS OF PROGRAM

START	MOV	!RB,00000000b	;SET RB PORT FOR ALL OUTPUTS
	CLR	RB		;CLEAR RB PORT

FLASH	XOR	RB,#11111111b	;FLIP THE BITS ON THE RB PORT

	CALL	:DELAY		;CALL DELAY ROUTINE
	
	JMP	FLASH		;JUMP TO FLASH LABEL

:DELAY	DJNZ	0Ch,:DELAY	;DELAY ROUTINE
	DJNZ	0Dh,:DELAY
	RET

