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

git-svn-id: trunk@47102 -
This commit is contained in:
florian 2020-10-12 19:43:24 +00:00
parent e90cf131fe
commit b8c707ed7e

View File

@ -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;