Previous: GetVerify procedure To the Table of Content Next: Keep procedure

- 4.24.2.23 -
Standard Units
Dos Unit
Dos Unit Procedures and Functions

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
  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: GetVerify procedure To the Table of Content Next: Keep procedure
GetVerify procedure Table of Content Keep procedure

- 4.24.2.23 -