147
Appendix E
Error and Arithmetic Flag Operation
The following table shows the instructions that affect the ER, CY, GT, LT and EQ flags. In general, ER indi-
cates that operand data is not within requirements. CY indicates arithmetic or data shift results. GT indicates
that a compared value is larger than some standard, LT that it is smaller, and EQ, that it is the same. EQ also
indicates a result of zero for arithmetic operations. Refer to Section 3 Instruction Set for details.
Vertical arrows in the table indicate the flags that are turned ON and OFF according to the result of the in-
struction.
Although timer and counter instructions are executed when ER is ON, instructions with a vertical arrow under
the ER column are not executed if ER is ON. All of the other flags in the following table will also not operate
when ER is ON.
Instructions 0311 (ER) 0312 (CY) 0313 (LT) 0314 (EQ) 0315 (GT)
TIM Unaffected Unaffected Unaffected Unaffected Unaffected
CNT Unaffected Unaffected Unaffected Unaffected Unaffected
END(01) OFF OFF OFF OFF OFF
STEP(04) Unaffected Unaffected Unaffected Unaffected
SNXT(05) Unaffected Unaffected Unaffected Unaffected
TIMM(20) Unaffected Unaffected Unaffected Unaffected Unaffected
TIMH(21) Unaffected Unaffected Unaffected Unaffected Unaffected
ATIM(22) Unaffected Unaffected Unaffected Unaffected Unaffected
RDM(23) Unaffected Unaffected Unaffected Unaffected
CNTH(24) Unaffected Unaffected Unaffected Unaffected
ATM1(25) Unaffected Unaffected Unaffected Unaffected Unaffected
ATM2(26) Unaffected Unaffected Unaffected Unaffected Unaffected
MOV(30) Unaffected Unaffected Unaffected
MVN(31) Unaffected Unaffected Unaffected
CMP(32) Unaffected
SFT(33) Unaffected Unaffected Unaffected Unaffected
BCMP(34) Unaffected Unaffected Unaffected Unaffected
ADD(40) Unaffected Unaffected
SUB(41) Unaffected Unaffected
ANDW(42) Unaffected Unaffected Unaffected
ORW(43) Unaffected Unaffected Unaffected
CLC(44) Unaffected OFF Unaffected Unaffected Unaffected