-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBIOS_KEY.C
More file actions
47 lines (41 loc) · 1.13 KB
/
BIOS_KEY.C
File metadata and controls
47 lines (41 loc) · 1.13 KB
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
/**********************************************************************/
/* */
/* Malte System/BIOS Keyboard */
/* 1992/10/18 */
/* */
/* Copyright (C) par les Chevaliers de Malte */
/* */
/**********************************************************************/
//
// *** Summary information ***
//
// The file name is : BIOS_KEY.C
// The header file name is : KEYBOARD\BIOS_KEY.H
// Created the : 1992/07/08
// Author is : Sylvian Maltais
//
#include <KEYBOARD\BIOS_KEY.H>
Word BIOS_NextKey(void)
{
asm MOV AH,0x01;
asm INT 0x16;
return(_AX);
}
Word BIOS_ReadKey(void)
{
asm XOR AH,AH;
asm INT 0x16;
return(_AX);
}
Byte BIOS_KeyFlags(void)
{
asm MOV AH,0x02;
asm INT 0x16;
return(_AL);
}
Byte BIOS_GetModeInsert(void)
{
asm MOV AH,0x02;
asm INT 0x16;
return((_AL >> 7) & 1);
}