]>
git.saurik.com Git - apple/boot.git/blob - i386/nasm/macros.c
b0a87afb8d9c7dbccb9c667361d3834060a1e72c
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
23 * @APPLE_LICENSE_HEADER_END@
25 /* This file auto-generated from standard.mac by macros.pl - don't edit it */
27 static char *stdmac
[] = {
28 "%define __NASM_MAJOR__ 0",
29 "%define __NASM_MINOR__ 97",
33 "%imacro section 1+.nolist",
34 "%define __SECT__ [section %1]",
37 "%imacro segment 1+.nolist",
38 "%define __SECT__ [segment %1]",
41 "%imacro absolute 1+.nolist",
42 "%define __SECT__ [absolute %1]",
45 "%imacro struc 1.nolist",
47 "%define %$strucname %1",
51 "%imacro endstruc 0.nolist",
52 "%{$strucname}_size:",
56 "%imacro istruc 1.nolist",
58 "%define %$strucname %1",
61 "%imacro at 1-2+.nolist",
62 "times %1-($-%$strucstart) db 0",
65 "%imacro iend 0.nolist",
66 "times %{$strucname}_size-($-%$strucstart) db 0",
69 "%imacro align 1-2+.nolist nop",
70 "times ($$-$) & ((%1)-1) %2",
72 "%imacro alignb 1-2+.nolist resb 1",
73 "times ($$-$) & ((%1)-1) %2",
75 "%imacro extern 1-*.nolist",
81 "%imacro bits 1+.nolist",
84 "%imacro global 1-*.nolist",
90 "%imacro common 1-*.nolist",