Texas Instruments MSP50C6xx Calculator User Manual


 
Individual Instruction Descriptions
4-135Assembly Language Instructions
4.14.40 MULS Multiply String With No Data Transfer
Syntax
[label] name src Clock, clk Word, w With RPT, clk Class
MULS An[~] n
S
+3 1 n
R
+3 3
Execution PH,PL MR * src string
PC PC + 1
Flags Affected None
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MULS An[~] 1 1 1 0 0 1 1 An 1 1 1 1 0 0 A~ 0
Description Multiply MR and the value in src. The 16 MSBs of the ( (n
s
+3) x 16 ) bit product
are stored in the PH register. The value in src is unchanged and the value in
PL is ignored. This instruction rounds the upper 16 bits. Note that An is a string
of length n
S
+2, where n
S
is the value in STR register.
See Also MUL, MULR, MULAPL, MULSPL, MULSPLS, MULTPL, MULTPLS,
MULAPL
Example 4.14.40.1 MULS A0
Multiply MR with A0 and store the upper 16 bits (with rounding) to PH register.