absolute interleaved with memory access
Original Reporter info from Mantis: m_burkhard@gmx.ch
-
Reporter name:
Original Reporter info from Mantis: m_burkhard@gmx.ch
- Reporter name:
Description:
This is compiled without errors:
var
b1: byte absolute $50;
begin
b1 := 3;
But if I make a second absolute line, then complains the compiler:
var
b1: byte absolute $50;
b2: byte absolute b1;
begin
b1 := 3;
Free Pascal Compiler version 3.0.2-r1:35394 [2017/08/25] for avr
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Embedded
Compiling test.pas
test.pas(6,23) Error: absolute can only be associated with a var or const
test.pas(13,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Steps to reproduce:
I tested this with AVR, MSDOS and default OS, whereby I wrote with MSDOS $ 00: $ 50.
The original Turbo-Pascal 7.0 compiles this without errors. Subject of course only MSDOS.