2
0
Эх сурвалжийг харах

* fix for OP_ROR in tcgavr.a_op_reg_reg_internal

git-svn-id: trunk@44749 -
(cherry picked from commit 599b7e80c022ede41935ddee2680ccc63de88ef9)
nickysn 5 жил өмнө
parent
commit
34eb9ade91

+ 1 - 1
compiler/avr/cgcpu.pas

@@ -730,7 +730,7 @@ unit cgcpu;
                      if not(size in [OS_8,OS_S8]) then
                        begin
                          list.concat(taicpu.op_none(A_CLC));
-                         list.concat(taicpu.op_reg_const(A_SBRC,src,0));
+                         list.concat(taicpu.op_reg_const(A_SBRC,dst,0));
                          list.concat(taicpu.op_none(A_SEC));
                        end;
                      list.concat(taicpu.op_reg(A_ROR,GetOffsetReg64(dst,dsthi,tcgsize2size[size]-1)));