Explorar el Código

m68k: on CF, sign_extend the clone register not the original dst for rotate/shift ops

Karoly Balogh hace 14 horas
padre
commit
1fa7d4f92a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/m68k/cgcpu.pas

+ 1 - 1
compiler/m68k/cgcpu.pas

@@ -1450,7 +1450,7 @@ unit cgcpu;
                 if not (CPUM68K_HAS_BYTEWORDMATH in cpu_capabilities[current_settings.cputype]) then
                   { source for these ops are always modulo 64 on m68k,
                     so we don't need to extend the src register }
-                  sign_extend(list, size, dst);
+                  sign_extend(list, size, hreg2);
 
                 list.concat(taicpu.op_reg_reg(opcode, opsize, hreg1, hreg2));