mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-01 17:35:38 +08:00
We can't use ($$-$) % (%1) since the wraparound will be wrong except for powers of 2. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
17 lines
168 B
NASM
17 lines
168 B
NASM
; Test of non-power-of-2 alignment
|
|
%use smartalign
|
|
|
|
bits 32
|
|
|
|
inc eax
|
|
inc eax
|
|
align 13
|
|
inc eax
|
|
inc eax
|
|
align 13
|
|
inc eax
|
|
inc eax
|
|
align 13
|
|
inc eax
|
|
inc eax
|
|
|