summaryrefslogtreecommitdiff
path: root/compiler/avr/agavrgas.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/avr/agavrgas.pas')
-rw-r--r--compiler/avr/agavrgas.pas10
1 files changed, 4 insertions, 6 deletions
diff --git a/compiler/avr/agavrgas.pas b/compiler/avr/agavrgas.pas
index 2e0d5bc0fc..94973eb0f6 100644
--- a/compiler/avr/agavrgas.pas
+++ b/compiler/avr/agavrgas.pas
@@ -81,6 +81,7 @@ unit agavrgas;
var
s : string;
begin
+ s:='';
with ref do
begin
{$ifdef extdebug}
@@ -95,9 +96,8 @@ unit agavrgas;
else if base<>NR_NO then
begin
if addressmode=AM_PREDRECEMENT then
- s:='-'
- else
- s:='';
+ s:='-';
+
case base of
NR_R26:
s:=s+'X';
@@ -119,9 +119,7 @@ unit agavrgas;
else if assigned(symbol) or (offset<>0) then
begin
if assigned(symbol) then
- s:=ReplaceForbiddenAsmSymbolChars(symbol.name)
- else
- s:='';
+ s:=ReplaceForbiddenAsmSymbolChars(symbol.name);
if offset<0 then
s:=s+tostr(offset)