Browse Source

* also convert 'jmp farprocsymbol' to 'jmp far farprocsymbol' in the i8086
inline assembler

git-svn-id: trunk@32170 -

nickysn 9 years ago
parent
commit
dc6119bab7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/x86/rax86int.pas

+ 2 - 2
compiler/x86/rax86int.pas

@@ -2187,8 +2187,8 @@ Unit Rax86int;
         for i:=1 to operandnum do
           with instr.operands[i].opr do
             begin
-              { convert 'call symbol' to 'call far symbol' for symbols that are an entry point of a far procedure }
-              if (instr.opcode=A_CALL) and (instr.opsize=S_NO) and
+              { convert 'call/jmp symbol' to 'call/jmp far symbol' for symbols that are an entry point of a far procedure }
+              if (instr.opcode in [A_CALL,A_JMP]) and (instr.opsize=S_NO) and
                  (typ=OPR_SYMBOL) and sym_farproc_entry then
                 instr.opsize:=S_FAR;
               { convert 'call/jmp dword [something]' to 'call/jmp far [something]' (BP7 compatibility) }