From 195e7e09180e7187ffc1bf5a83625162651ff051 Mon Sep 17 00:00:00 2001 From: nickysn Date: Mon, 25 May 2020 16:29:31 +0000 Subject: [PATCH] * translate jrjp to jp in the sdcc-sdasz80 asm writer git-svn-id: trunk@45498 - --- compiler/z80/agsdasz80.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/z80/agsdasz80.pas b/compiler/z80/agsdasz80.pas index 0cbe7d1928..ef0825dcd1 100644 --- a/compiler/z80/agsdasz80.pas +++ b/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);