; Toggle LEDS on port A
; Copyright 2009 by James P. Osburn

#include	"P16F5X.INC"

__config	_CP_OFF & _WDT_OFF & _HS_OSC

; Skip over special function registers
skipsfrs		res		7

; Reserve space for variables
delay1	        	res		1
delay2	        	res		1

; Reset vector
				org		01ffh
				goto	init

				org		0
; Make all PORTA bits outputs
init:			movlw	00h
				tris	PORTA
				clrf	PORTA


mainloop:
				nop
				nop
				nop
				nop
				nop
				decfsz	delay1,f
				goto	mainloop
				decfsz	delay2,f
				goto	mainloop
				incf	PORTA,f

				goto	mainloop

				end
