Great! Glad it helped.
Nothing to worry about there. Arrays work perfectly with PBP.Originally Posted by BobPigford
And yes, PBP makes sure the arrays will fit in a BANK of RAM.
The crossing boundary warnings refer to the FLASH memory used by the program. The same area of memory that you are WRITECODEing to.
Arrays can not cause that warning.
Array indexes always start at 0.
So if you have a word array of 3 elements, the index goes from 0 to 2.
It's easy to forget and try to use 1 - 3, but 3 would be outside of the array, probably a RAM location used by another variable.
PBP does not do any "Range Checking". It's up to you to stay within the bounds of the array.
Just about any good program will use arrays in some form or another.
So yup, time to learn ... then play ... then learn more ...
<br>
Bookmarks