Pārlūkot izejas kodu

z80: vasm doesn't support the JRJP pseudo instruction, so change it to JP during write

git-svn-id: trunk@45663 -
Károly Balogh 5 gadi atpakaļ
vecāks
revīzija
cc23515927
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      compiler/z80/agz80vasm.pas

+ 4 - 1
compiler/z80/agz80vasm.pas

@@ -382,7 +382,10 @@ unit agz80vasm;
       var
       var
         i: Integer;
         i: Integer;
       begin
       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
         if (taicpu(hp).ops<>0) or (hp.condition<>C_None) then
           begin
           begin
             writer.AsmWrite(#9);
             writer.AsmWrite(#9);