Shared Program Code
C-7
Program Examples
Example C–3. Header File With Interrupt Vector Declarations (vector.h)
* File: vector.h *
* File defines Interrupt vector labels *
.sect ”vectors”
b start ; reset vector – Jump to label start on reset
b inpt1 ; INT1 interrupt
b inpt23 ; INT2/INT3 interrupt
b timer ; TINT Timer interrupt
b codrx ; RX_Sync interrupt
b codtx ; TX_SYNC interrupt
b uart ; TX/RX Uart port interrupt
; Reserved and s/w interrupt vector locations
.space 45*16 ; Directive for filling zeros in PM space
.word 1,2,3,4,5 ; Example for constant loading