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 |
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[ |
'''PR[5]=PR[5]-PR[5]''' |
||
<br /> |
<br /> |