Imported Upstream version 2.9.0
[debian/cc1111] / src / izt / i186_mappings.i
1 static const ASM_MAPPING _as86_mapping[] = {
2     { "global", ".GLOBAL %s" },
3     { "labeldef", "%s:" },
4     { "tlabeldef", "l%05d:" },
5     { "tlabel", "l%05d" },
6     { "fileprelude", "" },
7     { "functionheader", 
8       "; ---------------------------------\n"
9       "; Function %s\n"
10       "; ---------------------------------"
11     },
12     { "functionlabeldef", "%s:" },
13     { "zero", "$00" },
14     { "one", "$01" },
15     { "area", ".SECT %s" },
16     { "areadata", ".SECT .DATA" },
17     { "areacode", ".SECT .TEXT" }, 
18     { "areahome", ".SECT .TEXT" }, 
19     { "module", "; Module %s" },
20     { "ascii", ".ASCII \"%s\"" },
21     { "ds", "lcomm %d" },
22     { "db", ".B" },
23     { "dbs", "DB %s" },
24     { "dw", "DW" },
25     { "dws", "DW %s" },
26     { "immed", "" },
27     { "constbyte", "$%02X" },
28     { "constword", "$%04X" },
29     { "immedword", "$%04X" },
30     { "immedbyte", "$%02X" },
31     { "hashedstr", "%s" },
32     { "lsbimmeds", "%s & $FF" },
33     { "msbimmeds", "%s >> 8" },
34     { NULL, NULL }
35 };
36
37 static const ASM_MAPPING _as86_i186_mapping[] = {
38     { "adjustsp", "add sp,*-%d" },
39     { "enter", "enter 0,0" },
40     { "enterx", "enter -%d,0" },
41     { "leave", "leave" },
42     { "leavex", "leave" },
43     { NULL, NULL }
44 };
45
46 static const ASM_MAPPINGS _as86_mappings = {
47     NULL,
48     _as86_mapping,
49 };
50
51 static const ASM_MAPPINGS _as86_i186_mappings = {
52     &_as86_mappings,
53     _as86_i186_mapping
54 };