Browse Source

+ emit proper far calls/jmps for addr_far in the nasm assembly output

git-svn-id: trunk@24833 -
nickysn 12 years ago
parent
commit
9a6c242f97
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compiler/x86/agx86nsm.pas

+ 4 - 0
compiler/x86/agx86nsm.pas

@@ -442,6 +442,10 @@ interface
                        (op=A_LOOPZ)
                        (op=A_LOOPZ)
                       ) then
                       ) then
                   AsmWrite('NEAR ');
                   AsmWrite('NEAR ');
+{$endif i8086}
+{$ifdef i8086}
+                if o.ref^.refaddr=addr_far then
+                  AsmWrite('far ');
 {$endif i8086}
 {$endif i8086}
                 AsmWrite(o.ref^.symbol.name);
                 AsmWrite(o.ref^.symbol.name);
                 if SmartAsm then
                 if SmartAsm then