diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-07-20 09:32:31 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-20 09:32:31 -0700 |
commit | aad26229b7dc9d2bcc4d8de9975724edd61eac43 (patch) | |
tree | bdfe615d0d9c950c314cbc997bfd122ca9559955 /standard.mac | |
parent | a70547f3ae6abaa2c658fdfdacf0ad6001b6839f (diff) | |
download | nasm-aad26229b7dc9d2bcc4d8de9975724edd61eac43.tar.gz nasm-aad26229b7dc9d2bcc4d8de9975724edd61eac43.tar.bz2 nasm-aad26229b7dc9d2bcc4d8de9975724edd61eac43.zip |
Add "alignr" standard macro (using resb)
Add an "alignr" standard macro, for use in BSS (nobits) and absolute
segments.
Diffstat (limited to 'standard.mac')
-rw-r--r-- | standard.mac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/standard.mac b/standard.mac index 9732be3..890c2b3 100644 --- a/standard.mac +++ b/standard.mac @@ -71,6 +71,13 @@ __SECT__ %imacro alignb 1-2+.nolist resb 1 times ($$-$) % (%1) %2 %endmacro +%imacro alignr 1-2+.nolist + %ifempty %2 + resb ($$-$) % (%1) + %else + times ($$-$) % (%1) %2 + %endif +%endmacro %imacro extern 1-*.nolist %rep %0 |