Browse Source

* write a warning in the assembler output, instead of stopping with an internal error in
tcgz80.a_op_reg_reg_internal for OP_MUL/OP_IMUL, so that more RTL code can be compiled

git-svn-id: branches/z80@45022 -

nickysn 5 years ago
parent
commit
088cfd5da5
1 changed files with 6 additions and 3 deletions
  1. 6 3
      compiler/z80/cgcpu.pas

+ 6 - 3
compiler/z80/cgcpu.pas

@@ -793,9 +793,12 @@ unit cgcpu;
              end;
 
            OP_MUL,OP_IMUL:
-             { special stuff, needs separate handling inside code
-               generator                                          }
-             internalerror(2017032604);
+             begin
+               { special stuff, needs separate handling inside code
+                 generator                                          }
+               list.Concat(tai_comment.Create(strpnew('WARNING! not implemented: a_op_reg_reg_internal OP_MUL/OP_IMUL')));
+               {internalerror(2017032604);}
+             end;
 
            OP_DIV,OP_IDIV:
              { special stuff, needs separate handling inside code