The intr procedure

Description

The intr procedure generates a x86 processor interrupt.

Parameter

  1. The first parameter is an expression of integral type whose value is the number of the interupt to generate (0-255).
  2. The second parameter is a reference to the variable of registers type which contains values to pass into the x86 processor registers before the interrupt is generated, and which receives the contents of the x86 processor registers after the interrupt is serviced.

Example

   //For example the following simple program uses interrupt $10
   //to clear the screen.
   program cls;
   var
      regs : registers;
   begin
      fill(regs, 0);
      regs.eax := $0002;
      intr($10, regs)
   end.

Portability

Operating Systems: DOS only
Standard Pascal: No