Browse Source

* translate jrjp to jp in the sdcc-sdasz80 asm writer

git-svn-id: trunk@45498 -
nickysn 5 years ago
parent
commit
195e7e0918
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/z80/agsdasz80.pas

+ 4 - 1
compiler/z80/agsdasz80.pas

@@ -343,7 +343,10 @@ unit agsdasz80;
       var
         i: Integer;
       begin
-        writer.AsmWrite(#9#9+std_op2str[hp.opcode]);
+        if hp.opcode=A_JRJP then
+          writer.AsmWrite(#9#9'jp')
+        else
+          writer.AsmWrite(#9#9+std_op2str[hp.opcode]);
         if (taicpu(hp).ops<>0) or (hp.condition<>C_None) then
           begin
             writer.AsmWrite(#9);