AVR - invalid assembler generated for variable at absolute 0
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
When specifying the absolute address of a variable as zero, the compiler generates invalid assembler. This construct generates correct instructions with other low values such as 1 to 31.
Steps to reproduce:
program test;
var
r0: byte absolute 0;
begin
r0 := 128;
end;
When compiled the following assembler is emitted:
# [5] r2 := 128;
ldi r18,-128
sts ,r18
Mantis conversion info:
- Mantis ID: 32821
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 37838 (#0f51cf85)