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