fpc/docs/go32ex/softint.pas
2005-02-14 17:13:06 +00:00

25 lines
433 B
ObjectPascal

{ Executes a real mode software interrupt
Exactly the interrupt call to get the DOS version.
get DOS version Int 21h / function 30h
Input:
AH = $30
AL = $1
Return:
AL = major version number
AH = minor version number
}
uses
go32;
var
r : trealregs;
begin
r.ah := $30;
r.al := $01;
realintr($21, r);
Writeln('DOS v', r.al,'.',r.ah, ' detected');
end.