WE DSP16A Digital Signal Processor Muitiply/ALU Instructions Note that the function statements and transfer statements in Table 1 are chosen independently. Any function statement may be combined with any transfer statement to form a valid muliply/ALU instruction. If either statement is not required, a single statement from either column constitutes a valid instruction. The number of cycles to execute the instruction is a function of the transfer column. (An instruction with no transfer statement executes in one instruction cycle.) All multiply/ALU instructions require 1 word of program memory. Table 1. Multiply/ALU Instructions Function Cycles Statements Statements! | Out/In Cache p=x«xy | y=Y x=X 2/1 aD=p p=x*y | y=aT x=X 2/1 aD=aS+p p=x«y y[l]=Y 1/1 aD=aS—p p=xx«y | aT[lJ=Y V1 aD=p x=Y¥ 1 aD=aS+p Y 1/1 aD=aS—p Y=y[l] 2/2 aD=y Y=aT[I] 2/2 aD=aS+y Zy x=X 2/2 aD=aS-y Z: yf] 2/2 aD=aSé&y Z: aT[l] 2/2 aD=aSly aD=aS’y aS-y aSéy t Brackets, [ ], indicate an optional argument and are not part of the instruction syntax. The | argument designates the low 16-bits of aT or y. Table 2. Replacement Table for Multiply/ALU Instructions [Replace | value’ = | Meaning aD aS a0, a1 One of two DAU accumulators. aT x « pt++,+ pt++i ROM location pointed to by pt. pt is postmodified by +1 and i, respectively. Y «tM, «rM++, «rM—-, RAM location pointed to by rM (M = 0, 1, 2, *«tM+4j 3). rMis postmodified by 0,+1,—1, or j, respectively. Z «xtMzp, «rMpz, «rMm2, | Read/write compound addressing. rM (M = «rMjk 0, 1, 2, 3) is used twice. First, post- modified by 0, +1, —1, or j, respectively and, second, postmodified by +1, 0, +2, or k, respectively. t When loading the upper half of a0, a1, or y, the lower half of the register is cleared if the corresponding CLR bit in the AUC register is zero. See the Register Settings section. 5