NASM 0.98.26
[platform/upstream/nasm.git] / macros.c
1 /* This file auto-generated from standard.mac by macros.pl - don't edit it */
2
3 static char *stdmac[] = {
4     "%define __NASM_MAJOR__ 0",
5     "%define __NASM_MINOR__ 98",
6     "%define __FILE__",
7     "%define __LINE__",
8     "%define __SECT__",
9     "%imacro section 1+.nolist",
10     "%define __SECT__ [section %1]",
11     "__SECT__",
12     "%endmacro",
13     "%imacro segment 1+.nolist",
14     "%define __SECT__ [segment %1]",
15     "__SECT__",
16     "%endmacro",
17     "%imacro absolute 1+.nolist",
18     "%define __SECT__ [absolute %1]",
19     "__SECT__",
20     "%endmacro",
21     "%imacro struc 1.nolist",
22     "%push struc",
23     "%define %$strucname %1",
24     "[absolute 0]",
25     "%$strucname:",
26     "%endmacro",
27     "%imacro endstruc 0.nolist",
28     "%{$strucname}_size:",
29     "%pop",
30     "__SECT__",
31     "%endmacro",
32     "%imacro istruc 1.nolist",
33     "%push istruc",
34     "%define %$strucname %1",
35     "%$strucstart:",
36     "%endmacro",
37     "%imacro at 1-2+.nolist",
38     "times %1-($-%$strucstart) db 0",
39     "%2",
40     "%endmacro",
41     "%imacro iend 0.nolist",
42     "times %{$strucname}_size-($-%$strucstart) db 0",
43     "%pop",
44     "%endmacro",
45     "%imacro align 1-2+.nolist nop",
46     "times ($$-$) & ((%1)-1) %2",
47     "%endmacro",
48     "%imacro alignb 1-2+.nolist resb 1",
49     "times ($$-$) & ((%1)-1) %2",
50     "%endmacro",
51     "%imacro extern 1-*.nolist",
52     "%rep %0",
53     "[extern %1]",
54     "%rotate 1",
55     "%endrep",
56     "%endmacro",
57     "%imacro bits 1+.nolist",
58     "[bits %1]",
59     "%endmacro",
60     "%imacro global 1-*.nolist",
61     "%rep %0",
62     "[global %1]",
63     "%rotate 1",
64     "%endrep",
65     "%endmacro",
66     "%imacro common 1-*.nolist",
67     "%rep %0",
68     "[common %1]",
69     "%rotate 1",
70     "%endrep",
71     "%endmacro",
72     NULL
73 };