Debian Codegraph @

src/cpu/modrm.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2002-2010 The DOSBox Team
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 extern Bit8u * lookupRMregb[];
20 extern Bit16u * lookupRMregw[];
21 extern Bit32u * lookupRMregd[];
22 extern Bit8u * lookupRMEAregb[256];
23 extern Bit16u * lookupRMEAregw[256];
24 extern Bit32u * lookupRMEAregd[256];
25
26 #define GetRM \
27 Bit8u rm=Fetchb();
28
29 #define Getrb \
30 Bit8u * rmrb; \
31 rmrb=lookupRMregb[rm];
32
33 #define Getrw \
34 Bit16u * rmrw; \
35 rmrw=lookupRMregw[rm];
36
37 #define Getrd \
38 Bit32u * rmrd; \
39 rmrd=lookupRMregd[rm];
40
41
42 #define GetRMrb \
43 GetRM; \
44 Getrb;
45
46 #define GetRMrw \
47 GetRM; \
48 Getrw;
49
50 #define GetRMrd \
51 GetRM; \
52 Getrd;
53
54
55 #define GetEArb \
56 Bit8u * earb=lookupRMEAregb[rm];
57
58 #define GetEArw \
59 Bit16u * earw=lookupRMEAregw[rm];
60
61 #define GetEArd \
62 Bit32u * eard=lookupRMEAregd[rm];
63
64