Browse Source

+ support align directive with a given use_op/fillop in the NASM asm writer

git-svn-id: trunk@30459 -
nickysn 10 years ago
parent
commit
877a769ac3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/x86/agx86nsm.pas

+ 2 - 0
compiler/x86/agx86nsm.pas

@@ -639,6 +639,8 @@ interface
                       (target_info.system in (systems_windows+systems_wince))
                       (target_info.system in (systems_windows+systems_wince))
                      ) then
                      ) then
                       AsmWriteLn(#9'ALIGNB '+tostr(tai_align(hp).aligntype))
                       AsmWriteLn(#9'ALIGNB '+tostr(tai_align(hp).aligntype))
+                    else if tai_align_abstract(hp).use_op then
+                      AsmWriteLn(#9'ALIGN '+tostr(tai_align(hp).aligntype)+',DB '+tostr(tai_align_abstract(hp).fillop))
                     else
                     else
                       AsmWriteLn(#9'ALIGN '+tostr(tai_align(hp).aligntype));
                       AsmWriteLn(#9'ALIGN '+tostr(tai_align(hp).aligntype));
                  end;
                  end;