]> git.saurik.com Git - apple/boot.git/blob - i386/nasm/macros.c
boot-83.2.tar.gz
[apple/boot.git] / i386 / nasm / macros.c
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.1 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24 /* This file auto-generated from standard.mac by macros.pl - don't edit it */
25
26 static char *stdmac[] = {
27 "%define __NASM_MAJOR__ 0",
28 "%define __NASM_MINOR__ 97",
29 "%define __FILE__",
30 "%define __LINE__",
31 "%define __SECT__",
32 "%imacro section 1+.nolist",
33 "%define __SECT__ [section %1]",
34 "__SECT__",
35 "%endmacro",
36 "%imacro segment 1+.nolist",
37 "%define __SECT__ [segment %1]",
38 "__SECT__",
39 "%endmacro",
40 "%imacro absolute 1+.nolist",
41 "%define __SECT__ [absolute %1]",
42 "__SECT__",
43 "%endmacro",
44 "%imacro struc 1.nolist",
45 "%push struc",
46 "%define %$strucname %1",
47 "[absolute 0]",
48 "%$strucname:",
49 "%endmacro",
50 "%imacro endstruc 0.nolist",
51 "%{$strucname}_size:",
52 "%pop",
53 "__SECT__",
54 "%endmacro",
55 "%imacro istruc 1.nolist",
56 "%push istruc",
57 "%define %$strucname %1",
58 "%$strucstart:",
59 "%endmacro",
60 "%imacro at 1-2+.nolist",
61 "times %1-($-%$strucstart) db 0",
62 "%2",
63 "%endmacro",
64 "%imacro iend 0.nolist",
65 "times %{$strucname}_size-($-%$strucstart) db 0",
66 "%pop",
67 "%endmacro",
68 "%imacro align 1-2+.nolist nop",
69 "times ($$-$) & ((%1)-1) %2",
70 "%endmacro",
71 "%imacro alignb 1-2+.nolist resb 1",
72 "times ($$-$) & ((%1)-1) %2",
73 "%endmacro",
74 "%imacro extern 1-*.nolist",
75 "%rep %0",
76 "[extern %1]",
77 "%rotate 1",
78 "%endrep",
79 "%endmacro",
80 "%imacro bits 1+.nolist",
81 "[bits %1]",
82 "%endmacro",
83 "%imacro global 1-*.nolist",
84 "%rep %0",
85 "[global %1]",
86 "%rotate 1",
87 "%endrep",
88 "%endmacro",
89 "%imacro common 1-*.nolist",
90 "%rep %0",
91 "[common %1]",
92 "%rotate 1",
93 "%endrep",
94 "%endmacro",
95 NULL
96 };