ver 8.3 overlooked assignment
Posted: 27 Oct 2008 18:55
I'm not sure we still correct version 8.3 (it's close to four months now since it appeared as beta) or someting etirely different, but here's another bug. This simple program leads to PORTB=2 in version 7 (as it should) but in version 8.3 PORTB ends up equal to 4 (The assignment i:=2 is 'overlooked' by the compiler.)
Code: Select all
var i:byte;
begin
i:=4;
PORTA:=4;
i:=2;
PORTA.1:=PORTA.i;
PORTB:=i;
end.