 .NOLIST
 .INCLUDE <tn2313def.inc>
 .LIST
.dseg
.org SRAM_START
.CSEG
.org 0
;------------------ Interrupt Vektoren ----------------------------------
	rjmp Reset
	rjmp INT0_	;External Interrupt0
	reti	;External Interrupt1
	reti	;Input capture interrupt 1
	reti	;Timer/Counter1 Compare Match A     
	reti	;Overflow1 Interrupt 
	Rjmp OVF0_	;Overflow0 Interrupt
	Rjmp URXC0_	;USART0 RX Complete Interrupt
	Rjmp UDRE0_	;USART0 Data Register Empty Interrupt
	reti	;USART0 TX Complete Interrupt 
	reti	;Analog Comparator Interrupt 
	reti	;Pin Change Interrupt
	reti	;Timer/Counter1 Compare Match B
	reti	;Timer/Counter0 Compare Match A     
	reti	;Timer/Counter0 Compare Match B     
	reti	;USI start interrupt
	reti	;USI overflow interrupt
	reti	;EEPROM write complete
	reti	;Watchdog Timer Interrupt
;------------------ Include Files ---------------------------------------
.include "Uart.asm"
.include "IR.asm"
;-------------------Reset + init -----------------------------------------
Reset:	cli
	ldi r16,low(Ramend)
	out spl,r16
	.ifdef sph
	ldi r16,high(Ramend)
	out sph,r16
	.endif
	sei
	rcall Uart_init
	rcall IR_init
;-------------------------------------------------------------------------
Start:
	rjmp Start



