CONTENTS
ACR Programmer’s Guide 9
Selection.................................................................................................................................................. 111
IF/THEN..................................................................................................................................................................111
IF/ELSE/ENDIF.......................................................................................................................................................112
ELSE IF Condition.................................................................................................................................................113
GOSUB/RETURN.................................................................................................................................................113
GOTO.....................................................................................................................................................................113
GOTO and GOSUB Sample Program............................................................................................. 114
Repetition ............................................................................................................................................... 115
FOR/TO/STEP/NEXT..........................................................................................................................................115
WHILE/WEND .....................................................................................................................................................115
Bits, Parameters and Variables .......................................................................................................... 116
User Bits and Parameters...................................................................................................................................117
Using Parameters and Bits.................................................................................................................. 118
Setting Binary Bits.................................................................................................................................................118
Clearing Binary Bits..............................................................................................................................................118
Printing the Current Value.................................................................................................................................119
A Word on Aliases ..............................................................................................................................................119
Programming Example......................................................................................................................... 119
Local Variables....................................................................................................................................... 120
Defines .................................................................................................................................................... 121
Starting, Pausing, and Halting Programs .......................................................................................... 123
Running a Program...............................................................................................................................................123
Running a Program at Power Up......................................................................................................................123
Listening to a Program ........................................................................................................................................123
Viewing a Running Program ...............................................................................................................................123
Halting a Program.................................................................................................................................................124