Browse Source

don't enforce BPL length, use SUBQ in g_concatcopy

git-svn-id: trunk@27290 -
Károly Balogh 11 years ago
parent
commit
1af6d17b4d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/m68k/cgcpu.pas

+ 2 - 2
compiler/m68k/cgcpu.pas

@@ -1639,8 +1639,8 @@ unit cgcpu;
                    if current_settings.cputype in cpu_coldfire then
                    if current_settings.cputype in cpu_coldfire then
                      begin
                      begin
                        { Coldfire does not support DBRA }
                        { Coldfire does not support DBRA }
-                       list.concat(taicpu.op_const_reg(A_SUB,S_L,1,hregister));
-                       list.concat(taicpu.op_sym(A_BPL,S_L,hl));
+                       list.concat(taicpu.op_const_reg(A_SUBQ,S_L,1,hregister));
+                       list.concat(taicpu.op_sym(A_BPL,S_NO,hl));
                      end
                      end
                    else
                    else
                      list.concat(taicpu.op_reg_sym(A_DBRA,S_L,hregister,hl));
                      list.concat(taicpu.op_reg_sym(A_DBRA,S_L,hregister,hl));