Please replace all previous RC releases asap and test your programs.
FOR-NEXT handler
The FOR-NEXT handler is a major improvement from the original code. However, in some case this will lead to code size increase and use of more temp variables.
When the code can use the old method - it will.
The use cases tested are extensive but we can never test enough. :-(
Test case example table (show below) - this is just one set of test cases for the use of constants.
Loop Variable Type
Start Value
End Value
Step Value
Byte constant
A byte constant
A byte constant
None specified - implies a byte value of 1
Word constant
A byte constant
A byte constant
None specified - implies a byte value of 1
Long constant
A byte constant
A byte constant
None specified - implies a byte value of 1
Byte constant
A word constant
A byte constant
None specified - implies a byte value of 1
Word constant
A long constant
A byte constant
None specified - implies a byte value of 1
Long constant
A byte constant
A byte constant
None specified - implies a byte value of 1
Long constant
A word constant
A byte constant
None specified - implies a byte value of 1
Long constant
A long constant
A byte constant
None specified - implies a byte value of 1
Byte constant
A byte constant
A byte constant
Byte Constant = 1
Word constant
A byte constant
A byte constant
Byte Constant = 1
Long constant
A byte constant
A byte constant
Byte Constant = 1
Byte constant
A word constant
A byte constant
Byte Constant = 1
Word constant
A long constant
A byte constant
Byte Constant = 1
Long constant
A byte constant
A byte constant
Byte Constant = 1
Long constant
A word constant
A byte constant
Byte Constant = 1
Long constant
A long constant
A byte constant
Byte Constant = 1
Byte constant
A byte constant
A byte constant
Byte Constant > 1
Word constant
A byte constant
A byte constant
Byte Constant > 1
Long constant
A byte constant
A byte constant
Byte Constant > 1
Byte constant
A word constant
A byte constant
Byte Constant > 1
Word constant
A long constant
A byte constant
Byte Constant > 1
Long constant
A byte constant
A byte constant
Byte Constant > 1
Long constant
A word constant
A byte constant
Byte Constant > 1
Long constant
A long constant
A byte constant
Byte Constant > 1
Byte constant
A byte constant
A byte constant
Byte Constant > 1
Word constant
A byte constant
A byte constant
Byte Constant > 1
Long constant
A byte constant
A byte constant
Byte Constant > 1
Byte constant
A word constant
A byte constant
Byte Constant > 1
Word constant
A long constant
A byte constant
Byte Constant > 1
Long constant
A byte constant
A byte constant
Byte Constant > 1
Long constant
A word constant
A byte constant
Byte Constant > 1
Long constant
A long constant
A byte constant
Byte Constant > 1
There are many, many more test cases for loop variables for Start and End Values (where each of these variables can be Byte, Word, Integer and Long) and where the step value is as Byte, Word, Integer (positive and negative) and Long. And, of all these cases the Start Value > End Value or the Start Value < End Value. And, where the Step value is Zero (0).
I cannot test every case. This would require a mega test suite. So, you need to test.
Table Text#
The is new capability has been developed by ToniG. Thank you!
He has used the following program segment for testing - he will post more later but this program gives you an insight into the new Table Text capability.
This release candidate is NOT a normal few tweaks or changes.
This has the completion of two major changes
Download Folder
https://sourceforge.net/projects/gcbasic/files/Release%20Candidates/
Please replace all previous RC releases asap and test your programs.
FOR-NEXT handler
The FOR-NEXT handler is a major improvement from the original code. However, in some case this will lead to code size increase and use of more temp variables.
When the code can use the old method - it will.
The use cases tested are extensive but we can never test enough. :-(
Test case example table (show below) - this is just one set of test cases for the use of constants.
There are many, many more test cases for loop variables for Start and End Values (where each of these variables can be Byte, Word, Integer and Long) and where the step value is as Byte, Word, Integer (positive and negative) and Long. And, of all these cases the Start Value > End Value or the Start Value < End Value. And, where the Step value is Zero (0).
I cannot test every case. This would require a mega test suite. So, you need to test.
Table Text#
The is new capability has been developed by ToniG. Thank you!
He has used the following program segment for testing - he will post more later but this program gives you an insight into the new Table Text capability.
Last edit: Anobium 2021-04-05