/********************************************************************************
*                                                                               *
*   file name   : INTVEC_7544.txt                                               *
*                                                                               *
*   Copyright   : RENESAS TECHNOLOGY CORPORATION                                *
*                                                                               *
*   Version     : 1.00  ( 2004-6-11 ) Initial                                   *
*                                                                               *
*********************************************************************************/
/*
  note:
    This data is a freeware that INTVEC segment for 7544 Group is described.
    RENESAS TECHNOLOGY CORPORATION assumes no responsibility for any damage
    that occurred by this data.
*/

/********************************************************************************
*   Default program of INTVEC segment in your cstartup.s31 file                 *
*********************************************************************************/

	COMMON  INTVEC
                               
?CSTARTUP_INTVEC:
#if defined(MELPS_37600)
        BLKB    40H - 6      ; FFFA  ( FFC0 + 40 - 6)  (-v2)
#elif defined(MELPS_MULDIV)
        BLKB    20H - 4      ; FFFC
#else
        BLKB    20H - 2      ; FFFE
#endif
?CSTARTUP_RESETVEC:
        WORD    init_C
	ENDMOD  init_C

/********************************************************************************
*   1. Replace the default program with the following INTVEC segment.           *
*   2. Set the interrupt jump destination to each interrupt vector address      *
*      according to your system. "init_C" here is just an example.              *
*   3. Declare the symbol of the corresponding interrupt routine by using       *
*      EXTERN directive.                                                        *
*********************************************************************************/

EXTERN                  ; EXTERN directive
        COMMON  INTVEC  ; FFDC - FFFB, FFFC - FFFD
?CSTARTUP_INTVECF
        WORD init_C     ; FFDC : BRK
	WORD $0FFFF	; Reserved Area
        WORD init_C     ; FFE0 : Timer1
        WORD init_C     ; FFE2 : AD
	WORD $0FFFF	; Reserved Area
        WORD init_C     ; FFE6 : TimerA
	WORD $0FFFF	; Reserved Area
	WORD $0FFFF	; Reserved Area
        WORD init_C     ; FFEC : TimerX
        WORD init_C     ; FFEE : CNTR1
        WORD init_C     ; FFF0 : CNTR0
        WORD init_C     ; FFF2 : Key-on wake-up
        WORD init_C     ; FFF4 : INT1
        WORD init_C     ; FFF6 : INT0
        WORD init_C     ; FFF8 : Serial I/O transmit
        WORD init_C     ; FFFA : Serial I/O receive
?CSTARTUP_RESETVEC:
        WORD init_C     ; FFFC : RESET
        ENDMOD init_C

