Skip to content

intlib

This library runs the interrupt handlers of a program. The compiler turns the commands SetInt, End SetInt, ClrInt and VWait into calls of it, so they have no entries here. Between SetInt and End SetInt stands code that runs at every interrupt of the given type, for example 5 for the vertical blank, fifty times a second on a PAL Amiga:

SetInt 5
  vbcount+1
End SetInt

ClrInt removes the handlers of a type again, and VWait waits for the next vertical blank. The library keeps the handlers of Amiga mode and of Blitz mode apart and switches them when the program changes mode; at the end of the program it removes all of them.

A SetInt block stands at the top level of the program, like a Statement or Function. If a SetInt comes while another block is still open, the compiler stops with the error of that block. When several blocks are open, the first kind in this table is reported:

Open blockError
Select“Select without End Select”
Repeat“Repeat without Until”
another SetInt“SetInt without End SetInt”
If or While“If Without End If”
inside a Statement or Function“Unterminated Procedure”
For“For Without Next”

Library number 65520.

This library declares no commands. Its routines are used by the compiler, by the code it generates or by other libraries.