11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MPY Signed Multiply MPYOperation:±S1 *S2 -+ D (parallel move)±S1 *S2 -+ D (parallel move)±(S1 *2-n)-+Q (no parallel move)Assembler Syntax:MPY (±)S1 ,S2,D (parallel move)MPY (±)S2,S1 ,D (parallel move)MPY (±)S,#n,D (no parallel move)Description: Multiply the two signed 24-bit source operands S1 and S2 and store theresulting product in the specified 56-bit destination accumulator D. Or, multiply thesigned 24-bit source operand S by the positive 24-bit immediate operand 2- n and add/subtract to/from the specified 56-bit destination accumulator D. The "_" sign option isused to negate the specified product prior to accumulation. The default sign option is "+".Note: When the processor is in the Double Precision Multiply Mode, the followinginstructions do not execute in the normal way and should only be used as part <strong>of</strong> thedouble precision multiply algorithm shown in Section 3.4 DOUBLE PRECISION MUL TI­PLY MODE:MPYYO, XO, AMACX1, YO, AMACXO, Y1, AMAC Y1, X1, AMPYYO, XO, BMACX1, YO, BMACXO, Y1, BMACY1, X1, BAll other Data ALU instructions are executed as NOP's when the processor is in the DoublePrecision Multiply Mode.Example 1:MPY -X1 ,Y1 ,A #$543210,YO;-(X1 *Y1) -+ A, update YOBefore ExecutionAfter ExecutionX1 I $800000 X1 I $800000Y1 I $COOOOO Y1 I $COOOOOAI $00:000000:000000 AI $FF:COOOOO:OOOOOO

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!