mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Add "alignr" standard macro (using resb)
Add an "alignr" standard macro, for use in BSS (nobits) and absolute segments.
This commit is contained in:
parent
a70547f3ae
commit
aad26229b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user