Ric wrote: ↑Fri 16 Dec 2022, 17:38
I had used an ENDPROC instead of a ENDIF
I'm pretty sure that the Cross Reference Utility warns about that mistake, so if you didn't run it my sympathy is limited! I
always use it because it's quite good at finding 'silly' mistakes, like typos, which can take a disproportionate amount of time to debug.
In fact I could have guessed you didn't run CrossRef, because it warns that your variable
length% is incompatible with lowercase keywords (not that I would necessarily expect you to do anything about that, but I prefer to in order to keep the warnings to a minimum).
However, when i change the size to 256*256*256*2*32 which is the size of the array i would like to deal with...
Is that the number of
bytes or the number of
array elements? Either way it's larger than the amount of memory that can ordinarily be allocated to BBC BASIC (512 Mbytes for BB4W, 256 Mbytes for BBCSDL) so the issue is not so much that you cannot
save an array that big but that you cannot even
store it!