Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20606

BASCOM-AVR : Determine unused RAM bounds : REPLY

$
0
0
___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

Viewing all articles
Browse latest Browse all 20606

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>