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

BASCOM-AVR : mathematical equation : REPLY

$
0
0
Adrian said all I add You must increase the size of stack from the help (memory usage and local) [quote:78356def9a] The software stack is used to store the addresses of LOCAL variables and for variables that are passed to SUB routines. Each LOCAL variable and passed variable to a SUB/FUNCTION, requires two bytes to store the address (because it is a 16-Bit address = 2 bytes). So when you have a SUB routine in your program that passes 10 variables, you need 10 * 2 = 20 bytes. When you use 2 LOCAL variables in the SUB program that receives the 10 variables, you need additional 2 * 2 = 4 bytes. [/quote:78356def9a] Use Double if you need precision jp :wink:

Viewing all articles
Browse latest Browse all 20688

Trending Articles



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