
;	# gpasm -a inhx8m wdt1.asm
	# Simpel blinky der bruger Watch Dog Timmerens default opsætning.

processor	10F322
include		p10f322.inc

;	__CONFIG _WDTE_ON & _FOSC_INTOSC

	__CONFIG _FOSC_INTOSC
	org		0x0000  ; Reset vector
	goto		init
;	org		0x0004	; Interrupt vector
;	goto		init


	org		H'05'
init	clrf		ANSELA 		; All ports are digital I/O
	movlw		B'00000011'	; Port 0 and 1 is input
	movwf		TRISA
	btfsc		PORTA, RA2
	goto		off
	goto		on

off	bcf     	PORTA, RA2
	goto		run

on	bsf     	PORTA, RA2

run	goto	run

	end

