Преглед на файлове

* patch by Christo Crause: r0, r1 are no volatile registers for avr tiny

git-svn-id: trunk@47102 -
florian преди 4 години
родител
ревизия
b8c707ed7e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      compiler/avr/cpupara.pas

+ 1 - 1
compiler/avr/cpupara.pas

@@ -58,7 +58,7 @@ unit cpupara;
     function tcpuparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
       begin
         if CPUAVR_16_REGS in cpu_capabilities[current_settings.cputype] then
-          result:=VOLATILE_INTREGISTERS-[RS_R18,RS_R19]
+          result:=VOLATILE_INTREGISTERS-[RS_R0,RS_R1,RS_R18,RS_R19]
         else
           result:=VOLATILE_INTREGISTERS;
       end;