]> andersk Git - udis86.git/blob - libudis86/syn.c
Initial commit
[udis86.git] / libudis86 / syn.c
1 /* udis86 - libudis86/syn.c
2  *
3  * Copyright (c) 2002-2009 Vivek Thampi
4  * All rights reserved.
5  * 
6  * Redistribution and use in source and binary forms, with or without modification, 
7  * are permitted provided that the following conditions are met:
8  * 
9  *     * Redistributions of source code must retain the above copyright notice, 
10  *       this list of conditions and the following disclaimer.
11  *     * Redistributions in binary form must reproduce the above copyright notice, 
12  *       this list of conditions and the following disclaimer in the documentation 
13  *       and/or other materials provided with the distribution.
14  * 
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
18  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 
19  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
22  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
24  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26
27 /* -----------------------------------------------------------------------------
28  * Intel Register Table - Order Matters (types.h)!
29  * -----------------------------------------------------------------------------
30  */
31 const char* ud_reg_tab[] = 
32 {
33   "al",         "cl",           "dl",           "bl",
34   "ah",         "ch",           "dh",           "bh",
35   "spl",        "bpl",          "sil",          "dil",
36   "r8b",        "r9b",          "r10b",         "r11b",
37   "r12b",       "r13b",         "r14b",         "r15b",
38
39   "ax",         "cx",           "dx",           "bx",
40   "sp",         "bp",           "si",           "di",
41   "r8w",        "r9w",          "r10w",         "r11w",
42   "r12w",       "r13W"  ,       "r14w",         "r15w",
43         
44   "eax",        "ecx",          "edx",          "ebx",
45   "esp",        "ebp",          "esi",          "edi",
46   "r8d",        "r9d",          "r10d",         "r11d",
47   "r12d",       "r13d",         "r14d",         "r15d",
48         
49   "rax",        "rcx",          "rdx",          "rbx",
50   "rsp",        "rbp",          "rsi",          "rdi",
51   "r8",         "r9",           "r10",          "r11",
52   "r12",        "r13",          "r14",          "r15",
53
54   "es",         "cs",           "ss",           "ds",
55   "fs",         "gs",   
56
57   "cr0",        "cr1",          "cr2",          "cr3",
58   "cr4",        "cr5",          "cr6",          "cr7",
59   "cr8",        "cr9",          "cr10",         "cr11",
60   "cr12",       "cr13",         "cr14",         "cr15",
61         
62   "dr0",        "dr1",          "dr2",          "dr3",
63   "dr4",        "dr5",          "dr6",          "dr7",
64   "dr8",        "dr9",          "dr10",         "dr11",
65   "dr12",       "dr13",         "dr14",         "dr15",
66
67   "mm0",        "mm1",          "mm2",          "mm3",
68   "mm4",        "mm5",          "mm6",          "mm7",
69
70   "st0",        "st1",          "st2",          "st3",
71   "st4",        "st5",          "st6",          "st7", 
72
73   "xmm0",       "xmm1",         "xmm2",         "xmm3",
74   "xmm4",       "xmm5",         "xmm6",         "xmm7",
75   "xmm8",       "xmm9",         "xmm10",        "xmm11",
76   "xmm12",      "xmm13",        "xmm14",        "xmm15",
77
78   "rip"
79 };
This page took 0.03669 seconds and 5 git commands to generate.