Here is a test program that initializes a memory block with a barray parameter that runs from empty, 1, 2, 3 and so on to 10.
The MEM.SIZE for each parameter value is printed out.
For the "empty parameter", barray(), the MEM.SIZE is 10, the whole array.
For barray(1), the MEM.SIZE is 10.
For barray(2), the MEM.SIZE is 9.
For barray(3), the MEM.SIZE is 8.
and so on, MEM.SIZE decreasing as the barray parameter increases, ending with, barray(10) giving a MEM.SIZE of 1.
This inverse relation between the barray parameter and the MEM.SIZE is interesting.
How does it come about?
PRINT "BYTE ARRAY - 10 ELEMENTS"
PRINT "barray index, MEM.SIZE" PRINT "-----------------------"