This is a redo/update of my previous thread with more specific information.
I spent some time doing more tests on this array problem. It turns out that arrays are not functioning for any chip belonging to family 15 (Family=15 in the chipdata file).
The problem is when trying to set several elements of an array with a single line of code, as show in the GCBasic help file, the correct asm code is not generated.
To verify this, I took the 12f1822 chipdata file, and changed the family to 14 and later to 16 just for a test, and code to actually set the values was generated in both cases, so it's something in GCBasic itself that isn't being done correctly for arrays for family 15.
This is the complete code of the test program I used-
Looking at the latest source code in update.zip, I suspect it is the code around line 11578, but there are many place that have tests for families 12,14,and 16 but the code for 15 is missing. I just don't know enough about the program to tell what's going on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a redo/update of my previous thread with more specific information.
I spent some time doing more tests on this array problem. It turns out that arrays are not functioning for any chip belonging to family 15 (Family=15 in the chipdata file).
The problem is when trying to set several elements of an array with a single line of code, as show in the GCBasic help file, the correct asm code is not generated.
To verify this, I took the 12f1822 chipdata file, and changed the family to 14 and later to 16 just for a test, and code to actually set the values was generated in both cases, so it's something in GCBasic itself that isn't being done correctly for arrays for family 15.
This is the complete code of the test program I used-
As stated previously, this results in an asm file containing
the code to actually set the values is missing. It should look something similar to this from a Family=14 chip
Looking at the latest source code in update.zip, I suspect it is the code around line 11578, but there are many place that have tests for families 12,14,and 16 but the code for 15 is missing. I just don't know enough about the program to tell what's going on.