Browse Source

* use is_calljmp to determine whether to use WriteOper_jmp in the sdcc-sdasz80 asm writer. This fixes
asm output for call instructions.

git-svn-id: branches/z80@44585 -

nickysn 5 years ago
parent
commit
1b06b649a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/z80/agsdasz80.pas

+ 1 - 1
compiler/z80/agsdasz80.pas

@@ -305,7 +305,7 @@ unit agsdasz80;
                   end
                   end
                 else
                 else
                   writer.AsmWrite(',');
                   writer.AsmWrite(',');
-                if hp.is_jmp then
+                if is_calljmp(hp.opcode) then
                   WriteOper_jmp(taicpu(hp).oper[i]^,hp)
                   WriteOper_jmp(taicpu(hp).oper[i]^,hp)
                 else
                 else
                   WriteOper(taicpu(hp).oper[i]^,S_B{taicpu(hp).opsize},hp.opcode,taicpu(hp).ops,(i=2));
                   WriteOper(taicpu(hp).oper[i]^,S_B{taicpu(hp).opsize},hp.opcode,taicpu(hp).ops,(i=2));