* 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 -
This commit is contained in:
nickysn 2020-04-04 23:03:13 +00:00
parent 87eae35e2f
commit 1b06b649a7

View File

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