Multi-dimensional Constants Arrays NOT WORK on P16

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Multi-dimensional Constants Arrays NOT WORK on P16

#1 Post by yo2lio » 12 Jun 2007 22:17

Hi,

Please Run Debugger on this code :

Code: Select all

program test;

var value : word;
    i,j : byte;
    
const NUMBERS :array[4] of array[4] of word =
      ((0, 1000, 2000, 3000),
      (4000, 5000, 6000, 7000),
      (8000, 9000, 10000, 11000),
      (12000, 13000, 14000, 15000)
      );

begin
  for i := 0 to 3 do
    begin
      for j := 0 to 3 do
        begin
          value := NUMBERS[i][j];
        end;
    end;
end. 
MCU is P16F877A ! Not work, result strange value !!! :( Work OK on P18.

Regards, Florin Medrea.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Multi-dimensional Constants Arrays NOT WORK on P16

#2 Post by zristic » 13 Jun 2007 08:25

Thanks Florin, we will see what is wrong with this.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Multi-dimensional Constants Arrays NOT WORK on P16

#3 Post by zristic » 15 Jun 2007 13:14

We fixed this, it is already in the beta version.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#4 Post by yo2lio » 15 Jun 2007 18:10

Thanks Zoran !!! :D

Post Reply

Return to “mikroPascal Beta testing”