-
Notifications
You must be signed in to change notification settings - Fork 0
/
BIOSEQUI.PAS
51 lines (40 loc) · 839 Bytes
/
BIOSEQUI.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ @author: Sylvain Maltais ([email protected])
@created: 2023
@website(https://www.gladir.com/CODER/BIOSLIB-TP)
@abstract(Target: Turbo Pascal 7)
}
Unit BIOSEQUI;
INTERFACE
Function BIOSEquip:Word;
Function GetEquip:Word;
Function GetNumFloppyDisk:Word;
Function GetNumParallelPort:Word;
Function GetNumSerialPort:Word;
IMPLEMENTATION
Uses DOS;
Function BIOSEquip:Word;
Var
Regs:Registers;
Begin
Regs.AX:=0;
Intr($11,Regs);
BIOSEquip:=Regs.AX;
End;
Function GetEquip:Word;
Var
Regs:Registers;
Begin
Regs.AX:=0;
Intr($11,Regs);
GetEquip:=Regs.AX;
End;
Function GetNumFloppyDisk:Word;Begin
GetNumFloppyDisk:=(GetEquip shr 6)and 3;
End;
Function GetNumParallelPort:Word;Begin
GetNumParallelPort:=(GetEquip shr 14)and 3;
End;
Function GetNumSerialPort:Word;Begin
GetNumSerialPort:=(GetEquip shr 9) and 3;
End;
END.