___lcdcounter is only used when you select 16x1a display. So change the options, compiler, LCD so that it will select the 16x2 instead.
I can not recommend to use the space as you do. future changes will/can break your code. and there are many dynamic variables for example with time, and with tcpip.
The simplest solution is to use a big byte array and then to overlay as was suggested.
Or you can use the frame space to allocate dynamic data.
Just load r24/r25 with the size of the data you want and call _AddSizeToFrame
_SPH (r5) and _SPL (r4) hold a pointer to the data. And so does the soft stack Y.
When finished, you can release the block with specifying the size again in r24/r25 and a call to _SUBFROMFRAME
↧