From 64ff162e3f02d62a3d06a83dda30b3f90b51ecfe Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 12 Oct 2020 19:43:24 +0000 Subject: [PATCH] * patch by Christo Crause: r0, r1 are no volatile registers for avr tiny git-svn-id: trunk@47102 - (cherry picked from commit b8c707ed7ec518f89df8d3853615a2b556b2fd78) --- compiler/avr/cpupara.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/avr/cpupara.pas b/compiler/avr/cpupara.pas index ede8af0cb1..9519a74b2a 100644 --- a/compiler/avr/cpupara.pas +++ b/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;