Programs: Difference between revisions

Content added Content deleted
Line 3: Line 3:


==== Setup Section ====
==== Setup Section ====
The first lines of a program should be your setup instructions. This often means zeroing registers and setting constants to be used later. It's also a good idea to set all your outputs to ideal conditions. We can do this quickly using our [[Best Practices|best practices]] PR[2] which is set to zero.
The first lines of a program should be your setup instructions. This often means zeroing registers and setting constants to be used later. It's also a good idea to set all your outputs to ideal conditions. We can do this quickly using a single register instruction.

Examples:
Examples:


'''PR[5]=PR[2:Zero]'''
'''PR[5]=PR[5]-PR[5]'''


<br />
<br />