]>
git.saurik.com Git - apple/boot.git/blob - i386/nasm/macros.c
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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
22 * @APPLE_LICENSE_HEADER_END@
24 /* This file auto-generated from standard.mac by macros.pl - don't edit it */
26 static char *stdmac
[] = {
27 "%define __NASM_MAJOR__ 0",
28 "%define __NASM_MINOR__ 97",
32 "%imacro section 1+.nolist",
33 "%define __SECT__ [section %1]",
36 "%imacro segment 1+.nolist",
37 "%define __SECT__ [segment %1]",
40 "%imacro absolute 1+.nolist",
41 "%define __SECT__ [absolute %1]",
44 "%imacro struc 1.nolist",
46 "%define %$strucname %1",
50 "%imacro endstruc 0.nolist",
51 "%{$strucname}_size:",
55 "%imacro istruc 1.nolist",
57 "%define %$strucname %1",
60 "%imacro at 1-2+.nolist",
61 "times %1-($-%$strucstart) db 0",
64 "%imacro iend 0.nolist",
65 "times %{$strucname}_size-($-%$strucstart) db 0",
68 "%imacro align 1-2+.nolist nop",
69 "times ($$-$) & ((%1)-1) %2",
71 "%imacro alignb 1-2+.nolist resb 1",
72 "times ($$-$) & ((%1)-1) %2",
74 "%imacro extern 1-*.nolist",
80 "%imacro bits 1+.nolist",
83 "%imacro global 1-*.nolist",
89 "%imacro common 1-*.nolist",