Previous: 4.74.2.22. GetVerify procedure To the Table of Contents Next: 4.74.2.24. MsDos procedure
4.74.2.22. GetVerify procedure Table of Contents 4.74.2.24. MsDos procedure

- 4.74.2.23. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.2. WinDos Unit Procedures and Functions
4.74.2.23. Intr procedure


4.74.2.23. Intr procedure

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
  WinDos;
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.74.2.22. GetVerify procedure To the Table of Contents Next: 4.74.2.24. MsDos procedure
4.74.2.22. GetVerify procedure Table of Contents 4.74.2.24. MsDos procedure

- 4.74.2.23. -