Download ADSP-218x DSP Instruction Set Reference

Transcript
Instruction Set
/* ADD a negative constant */
AR = AX0 − 129;
/* AR = AX0 + (− 129) */
/* 32 Bit Addition: AX1:AX0 = AX1:AX0 + AY1:AY0 */
DIS AR_SAT;
/* If not already disabled */
AR = AX0 + AY0;
/* Add low words */
AR = AX1 + AY1 + C, AX0 = AR;
AX1 = AR;
/* Add high words + carry */
/* Copy result if required */
D ESCRIPTION
Test the optional condition and, if true, perform the specified addition. If
false then perform a no-operation. Omitting the condition performs the
addition unconditionally. The addition operation adds the first source
operand to the second source operand along with the ALU carry bit, AC, (if
designated by the +C notation), using binary addition. The result is stored
in the destination register. The operands are contained in the data registers or constant specified in the instruction.
ADSP-218x Instruction Set Reference
4-33