The .VECTOR directive generates an interrupt vector table.
Symbol field |
Mnemonic field |
Operand field |
Comment field |
symbol-name |
.VECTOR |
Vector-table-allocation-address |
[; comment] |
The symbol name should be the label of the destination of a branch to be executed when an interrupt occurs. |
An even address between 0x00000 and 0x0007E can be specified as the vector table allocation address. If a value outside this range is specified, an error will occur. |
The information handled by the .VECTOR directive is the vector table information output by the compiler for #pragma interrupt specified in the C source program. When this directive is included in the code (#pragma interrupt is specified in the C source program), this directive should be used instead of a section definition directive to define a vector table in the assembly source program such as in the startup routine. |
When both the vector tables specified through the .VECTOR directive and those specified through the section definition directive are used together, the optimizing linker outputs an error. |
To specify multiple addresses (0x00008 and 0x0000a) for interrupt function intfunc.
To specify multiple addresses (0x00020, 0x00022, 0x00024, 0x00026 and 0x00028) for interrupt function intfunc2.