Previous: 4.24.2.22. GetVerify To the Table of Contents Next: 4.24.2.24. Keep
4.24.2.22. GetVerify Table of Contents 4.24.2.24. Keep

- 4.24.2.23. -
Table of Contents
4. Standard Units
4.24. DOS - MSDOS support unit
4.24.2. DOS Unit Procedures and Functions
4.24.2.23. Intr


4.24.2.23. Intr

Targets: MS-DOS only

Dos Unit, WinDos Unit

Executes a specified software interrupt.

Declaration:
procedure Intr(IntNo: Byte; var Regs: TRegisters);
Remarks:
Before calling Intr, load Regs with the appropriate parameters needed for the interrupt. Regs returns the values of the registers after the interrupt call. Calls that depend on ESP and SS cannot be executed. For more information about software interrupt calls consult your BIOS and DOS reference manual.

Note that all segment resgisters (DS,ES,FS,GS) must contain valid segment descriptors or be set to zero prior to calling Intr. All interrupt calls that require an offset must be passed a 32 bit offset.

Example:
uses
  Dos;
function GetVideoMode: Byte;
var
  Regs: Registers;
begin
  Regs.AX := $0F00;
  Regs.DS := DSeg;  Regs.ES := 0;
  Regs.FS := 0;     Regs.GS := 0;
  Intr($10, Regs);
  GetVideoMode := Regs.Al;
end.



Previous: 4.24.2.22. GetVerify To the Table of Contents Next: 4.24.2.24. Keep
4.24.2.22. GetVerify Table of Contents 4.24.2.24. Keep

- 4.24.2.23. -