Make sure you access the arrays correctly. If you define an array of let's say 4 elements ....

MyArray VAR BYTE[4]

.... you should access the elements 0 through 3. MyArray[4] will access the next byte in memory wich most likley will be another variable. The compiler will NOT warn you about this, you'll have to make sure yourself.

/Ingvar