+ support conditional jumps in the sdcc-sdasz80 assembler writer

git-svn-id: branches/z80@44573 -
This commit is contained in:
nickysn 2020-04-04 17:05:49 +00:00
parent d05a632616
commit ff655543ed

View File

@ -298,9 +298,13 @@ unit agsdasz80;
for i:=0 to taicpu(hp).ops-1 do
begin
if i=0 then
writer.AsmWrite(#9)
begin
writer.AsmWrite(#9);
if hp.is_jmp and (hp.condition<>C_None) then
writer.AsmWrite(uppercond2str[hp.condition]+',');
end
else
writer.AsmWrite(',');
writer.AsmWrite(',');
if hp.is_jmp then
WriteOper_jmp(taicpu(hp).oper[i]^,hp)
else