◄Summary► ◄Details► ◄Example► ◄Back► Arguments vector_number Integer expression representing an interrupt number in the range $0..$FF (decimal 0..255) vector_address Pointer to an interrupt procedure Description The SetIntVec procedure sets a vector address for a specified interrupt number. An interrupt vector is the address of an interrupt procedure. When an interrupt occurs, the system executes the procedure. The vector_number argument is a byte containing an interrupt number. The vector_address argument is the address of an interrupt routine. Pass the address either by using the Ptr function to set a pointer to the desired address, or by using the at-sign operator (@) or the Addr function to get the address of a procedure. Use the GetIntVec procedure to save the old interrupt number before installing a new interrupt handler with SetIntVec. If a program changes an interrupt vector, it must restore it before terminating. An interrupt procedure must be declared with the INTERRUPT modifier. The procedure may only be called by an interrupt.