
;Boiler Plate for Robot Club LineBot   07/14/07  Tiger

.include "tn13def.inc"
.cseg
.org 0


;Equates:

	.equ	R_Motor	= $0	;Port for right motor
	.equ	L_Motor	= $1	;Port for left motor
	.equ	Button	= $2	;Port push button switch
	.equ	L_Sense	= $3	;Port for left line sensor
	.equ	R_Sense	= $4	;Port for right line sensor

	.def	temp	= R16	;Unprotected temp register
	.def	temp2	= R17	;Unprotected temp register

	; ------------------------------< Interrupt Vectors >------------------------------------

IntVec:
	rjmp	Init			;(Reset)
	reti					;(Ext Int)
	reti					;(Pin Change)
	reti					;(Timer Overflow)
	reti					;(EEPROM Ready)
	reti					;(Comparator)


; ---------------------------------< Initialization >-------------------------------------

Init:
	ldi		temp,0b00000011	;Set port directions (in or out)
	out		DDRB,temp		;Init PortB (Output=1)

	ldi		temp,0b00000100	;Set output states and pullups
	out		portb,temp


; ----------------------------------< Main Program >--------------------------------------

Main:





; ----------------------------------< Subroutines >--------------------------------------

