-
Notifications
You must be signed in to change notification settings - Fork 0
/
Puerto.h
67 lines (62 loc) · 1.89 KB
/
Puerto.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//------------------------------------------------------------------------------
// Puerto.h
//
// Authors:
// Luis Antonio Úbeda Medina (lubeme23@gmail.com)
// Héctor Veiga Ortiz (hveiga@hawk.iit.edu)
//
// Copyright 2010 Héctor Veiga Ortiz and Luis Antonio Úbeda Medina.
//
// This file is part of Coldtrix Game Suite.
//
// Coldtrix Game Suite is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Coldtrix Game Suite is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Coldtrix Game Suite. If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------
#define MASCARA_TECLADO 0xFFFE
#define EXCIT_TECLADO 0x0001
#define MASCARA_FILAS 0xFF00
#define MASCARA_F0 0xFEFF
#define MASCARA_F1 0xFDFF
#define MASCARA_F2 0xFBFF
#define MASCARA_F3 0xF7FF
#define MASCARA_F4 0xEFFF
#define MASCARA_F5 0xDFFF
#define MASCARA_F6 0xBFFF
#define MASCARA_F7 0x7FFF
#define MASCARA_COLUMNAS 0xFF01
#define MASCARA_C0 0x0010
#define MASCARA_C1 0x0020
#define MASCARA_C2 0x0040
#define MASCARA_C3 0x0080
#define MASCARA_C4 0x0004
#define MASCARA_C5 0x0008
#define COLUMNA_TEC 0x1
#define HEX_CERO 0x0000
#define HEX_UNO 0x0001
#define F0 0
#define F1 1
#define F2 2
#define F3 3
#define F4 4
#define F5 5
#define F6 6
#define F7 7
#define C0 0
#define C1 1
#define C2 2
#define C3 3
#define C4 4
#define C5 5
typedef struct {
WORD varAux;
} TpuertoSal;