-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMDIR.INC
35 lines (30 loc) · 856 Bytes
/
CMDIR.INC
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
(* Manipulations des Repertoires *)
Function SupressionRepertoire(Nom:String64) : Word;
Begin
Nom := Nom + #0;
Registre.AH := $3A;
Registre.DS := Seg(Nom[1]);
Registre.DX := Ofs(Nom[1]);
MSDos(Registre);
SupressionRepertoire := Registre.AX;
End;
Function CreationRepertoire(Nom:String64) : Word;
Begin
Nom := Nom + #0;
Registre.AH := $39;
Registre.DS := Seg(Nom[1]);
Registre.DX := Ofs(Nom[1]);
MSDos(Registre);
If(Registre.Flags and 1<>0)Then CreationRepertoire := Registre.AX
Else CreationRepertoire := 0;
End;
Function ChangeRepertoire(Nom:String64) : Word;
Begin
Nom := Nom + #0;
Registre.AH := $3B;
Registre.DS := Seg(Nom[1]);
Registre.DX := Ofs(Nom[1]);
MSDos(Registre);
If(Registre.Flags and 1<>0)Then ChangeRepertoire := Registre.AX
Else ChangeRepertoire := 0;
End;