I have declaired an array 0..10 of byte (a: array [0..10] of byte;)
When I do this:
Code: Select all
procedure somewhat();
var b,c: byte;
c:=0;
b:=U2RXREG;
while something do
a[c]:=b;
// Checkpoint
inc(c);
end;
end;
But another funny thing is, when I change the declaration from a in to an array of word (a: array[0..10] of word;) then I get a compile error:
0:86 E-420 Invalid ASM instruction (233): [W1] (0x0002B4) [W1]
Is there a known issue with arrays?
Thanks in advance