interrupt (procedure directive)
The interrupt directive allows you to declare interrupt.
procedure IntProc(Flags, CS, IP, AX, BX, CX, DX, SI, DI, DS, ES, BP: Word);
An interrupt procedure must specify the following procedure header:
The registers are passed as pseudo-parameters so you can use and modify them in the code of the interrupt procedure.