INTVECTOR

Abbreviation

IV

Arguments

An optional offset, in parentheses, for the interrupt vector table.

Default

INTVECTOR (0)

Description

The INTVECTOR directive instructs the compiler to generate interrupt vectors for functions which require them. An offset may be entered if the vector table starts at an address other than 0. Using this directive, the compiler generates an interrupt vector entry using either an AJMP or LJMP instruction depending on the size of the program memory specified with the ROM directive. Vectors are located at absolute address (interval × n) + offset + 3,
where:
    n is the interrupt number.
    interval is the argument of the INTERVAL directive (default:8).
    offset is the argument of the INTVECTOR directive (default 0).

See Also
INTERVAL, NOINTVECTOR
Example
#pragma iv(0x8000)