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

BASCOM-AVR : replace command with cracy behavior : REPLY

$
0
0
Hello oszi Have you looked at the project mode, it allows you to break up that big blob of code into manageable parts. I put my subs into separate files and use $include this also makes it so that you can build programs from these parts as building blocks because they are separate files you can use them over and over but do not have to type them in again you can test each block in isolation by creating a small program that uses it, once it is working you know that in the future that in a program that uses it any problems will most likely be in the new code you have written. I use local variables in the these subs as much as possible you then do not have to dim them in your main program and you save on ram. Now with the problem you have just experienced with your program broken up only the file you are working in would have been affected. Have a look at the code here http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=10125 this shows how I broke up a very large program into building blocks. It became so large I had trouble just finding anything in it the project mode made it manageable. Regards Paul

Viewing all articles
Browse latest Browse all 20579

Trending Articles



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