Texas Instruments TMS320C28x Reference Manual page 393

Dsp cpu and instruction set
Table of Contents

Advertisement

MPYB P,T,#8bit
MPYB P,T,#8bit
SYNTAX OPTIONS
MPYB P,T,#8bit
Operands
P
T
#8bit
Description
Flags and
Modes
Repeat
Example
; Calculate: Y32 = X16 * 5;
MOV
MPYB
MOVL
6-236
0011 0001 CCCC CCCC
Product register
Multiplicand register
8-bit immediate constant value
Multiply the signed 16-bit content of the T register by the unsigned 8-bit
immediate constant value zero extended and store the 32-bit result in the P
register:
P = signed T * 0:8bit;
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
T,@X16
; T = X16
P,T,#5
; P = T * #5
@Y,P
; Store result into Y32
Multiply Signed Value by Unsigned 8-bit Constant
OPCODE
OBJMODE
RPT
CYC
X
1

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF