-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMRESID.INC
42 lines (39 loc) · 852 Bytes
/
CMRESID.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
34
35
36
37
38
39
40
41
42
Var CodeClavier : Byte;
AncienCode1 : Byte;
AncienCode2 : Byte;
AncienCode3 : Byte;
Procedure Interruption09;
Interrupt;
Begin
InLine($FA);
CodeClavier := Port[$60];
{ WriteLn(CodeClavier);}
If(CodeClavier = 197)and(AncienCode1 = 157)Then WriteLn('Pause');
InLine($FB/
$CD/$66);
AncienCode3 := AncienCode2;
AncienCode2 := AncienCode1;
AncienCode1 := CodeClavier;
End;
Procedure AdaptationClavier;
Var Segment : Word;
OffSet : Word;
Begin
Registre.AH := $35;
Registre.AL := $09;
MsDos(Registre);
Segment := Registre.ES;
OffSet := Registre.BX;
InLine($FA);
Registre.AH := $25;
Registre.AL := $66;
Registre.DS := Segment;
Registre.DX := OffSet;
MsDos(Registre);
Registre.AH := $25;
Registre.AL := $09;
Registre.DS := Seg(Interruption09);
Registre.DX := Ofs(Interruption09);
MsDos(Registre);
InLine($FB);
End;