15Instruction Set Reference
15 – 15
Program Flow Control Instructions
[IF condition] JUMP (I4) ;
(I5)
(I6)
(I7)
<address>
IF FLAG_IN JUMP <address> ;
NOT FLAG_IN
[IF condition] CALL (I4) ;
(I5)
(I6)
(I7)
<address>
IF FLAG_IN CALL <address> ;
NOT FLAG_IN
[IF condition] RTS ;
[IF condition] RTI ;
DO <address> [UNTIL termination] ;
IDLE [(n)];
Table 15.8 Program Flow Control Instructions
Syntax Status Condition True If:
EQ Equal Zero AZ = 1
NE Not Equal Zero AZ = 0
LT Less Than Zero AN .XOR. AV = 1
GE Greater Than or Equal Zero AN .XOR. AV = 0
LE Less Than or Equal Zero (AN .XOR. AV) .OR. AZ = 1
GT Greater Than Zero (AN .XOR. AV) .OR. AZ = 0
AC ALU Carry AC = 1
NOT AC Not ALU Carry AC = 0
AV ALU Overflow AV = 1
NOT AV Not ALU Overflow AV = 0
MV MAC Overflow MV = 1
NOT MV Not MAC Overflow MV = 0
NEG X Input Sign Negative AS = 1
POS X Input Sign Positive AS = 0
NOT CE Not Counter Expired
FLAG_IN* FI pin Last sample of FI pin = 1
NOT FLAG_IN* Not FI pin Last sample of FI pin = 0
Table 15.9 IF Condition Codes
* Only available on JUMP and CALL instructions