PICBASIC PLUS LITE Manual - Profe Saul
PICBASIC PLUS LITE Manual - Profe Saul
PICBASIC PLUS LITE Manual - Profe Saul
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>PICBASIC</strong> <strong>PLUS</strong> CompilerFor example: -GOTO OVER_THIS_SUBROUTINE‘ The subroutine is placed hereOVER_THIS_SUBROUTINE:‘ Jump over the subroutine‘ Jump to here first2). Variable and Label names should be as meaningful as possible.For example. Instead of naming a variable LOOP, change it toISUB_LOOP. This will help eliminate any possible duplication errors,caused by the main program trying to use the same variable or labelname. However, try not to make them too obscure as your code willbe harder to read and understand, it might make sense at the time ofwriting, but come back to it after a few weeks and it will be meaningless.3). Comment, Comment, and Comment some more.This cannot be emphasized enough. ALWAYS place a plethora ofremarks and comments. The purpose of the subroutine/s within theinclude file should be clearly explained at the top of the program, also,add comments after virtually every command line, and clearly explainthe purpose of all variables and constants used. This will allow thesubroutine to be used many weeks or months after its conception. Arule of thumb that I use is that I can understand what is going onwithin the code by reading only the comments to the right of thecommand lines.68Copyright Crownhill 2001