	INCLUDE	68HC11F1.DEF	
	INCLUDE	AS11.MAC	
	INCLUDE	MAP.ASM	
			
	CODE		
	VECTOR_RESET		
RESET	EQU	*	
	INCLUDE	INIT.ASM	
MLOOP	EQU	*	;main loop start
	TST	T4MS0	
	BEQ	M10	
	BRA	M20	
M10	LDAA	#5	;restart timer
	STAA	T4MS0	
M20	JSR     READ_ADC
        JMP	MLOOP	
        INCLUDE TIMER.ASM
        INCLUDE ANALOG.ASM

	END		
