Browse Source

+ support conditional jumps in the sdcc-sdasz80 assembler writer

git-svn-id: branches/z80@44573 -
nickysn 5 years ago
parent
commit
ff655543ed
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/z80/agsdasz80.pas

+ 6 - 2
compiler/z80/agsdasz80.pas

@@ -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