The intr procedure


The intr procedure generates a x86 processor interrupt.


  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.


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


Operating Systems: DOS only
Standard Pascal: No