***************************************************************
*
*		MIRS3ENT.SRC
*
*		Ver.1.10    Written on 3  Apr.,1990
*		    2.0                25 Jan.,1994 
*		    2.2                3  Feb.,1994
***************************************************************                 *                                                             *
*  ENTRY  : Main entry point routine, it does the following   *
*                                                             *
*           1. Initialized SP as ????STACKTOP which will      *
*              be defined at link time                        *
*           2. Initialized frame pointer                      *
*           3. Set Vector Adrs                                *
*           4. Calls C initialization routine main()          *
*                                                             *
***************************************************************
           
              OPT	CASE
ENTRY         IDNT

      SECTION   9		    		* CODE SECTION
	
	      DC.L	????STACKTOP        	* SSP on Cold Start
	      DC.L	$0FC0008            	* Entry Point

ENTRY:        MOVE.L    #????STACKTOP,SP    	* STACK POINTER
              MOVE.L    #0,A6               	* FRAME POINTER INITIALIZATION
	      
 	      MOVE.L    #$070,A0            	* LEVEL 4 Auto Vector
              MOVE.L    #.sensor_int,(A0)   	* Touch Sensor Interrupt
              MOVE.L    #$074,A0            	* LEVEL 5 Auto Vector
              MOVE.L    #.tmint,(A0)
	      MOVE      #$2000,SR
              JSR       .main              	* C INITIALIZATION
LSTOP:        STOP      #$2700             	* Halt until Level 7 Interrupt
              BRA.S	LSTOP
              RTS

      SECTION   14		         	* DATA SECTION IN RAM
              XREF      ????STACKTOP     
      SECTION   13                       	* DATA SECTION IN ROM        
              XREF      .main            	* C Entry Routine
	      XREF      .sensor_int      	* Interrupt Handler
              XREF      .tmint            
 	      END       ENTRY
 