Renesas R8C/Tiny Series Software Manual page 112

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Chapter 3 Functions
MUL
[ Syntax ]
MUL.size
src,dest
[ Operation ]
dest
dest
[ Function ]
• This instruction multiplies
• If (.B) is selected as the size specifier (.size),
and the result is stored in 16 bits. If A0 or A1 is specified as either
performed using the 8 low-order bits of A0 or A1.
• If (.W) is selected as the size specifier (.size),
and the result is stored in 32 bits. If R0, R1, or A0 is specified as
R3R1, or A1A0 accordingly.
[ Selectable src/dest ]
R0L/R0
R0H/R1
*1
*1
A0/A0
A1/A1
dsp:8[A0]
dsp:8[A1]
dsp:16[A0] dsp:16[A1]
dsp:20[A0] dsp:20[A1]
R2R0
R3R1
*1 If (.B) is selected as the size specifier (.size), A0 or A1 cannot be chosen for
neously.
[ Flag Change ]
Flag
U
I
O
Change
[ Description Example ]
MUL.B
A0,R0L
MUL.W
#3,R0
MUL.B
R0L,R1L
MUL.W
A0,Ram
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
B , W
src
src
dest
and
src
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB] dsp:8[A0]
dsp:16[SB]
abs16
abs20
#IMM
A1A0
B
S
Z
D
C
DIV, DIVU, DIVX, MULU
page 94 of 263
Signed multiply
MULtiple
[ Instruction Code/Number of Cycles ]
including the sign bits and stores the result in
src
dest
and
are treated as 8-bit data for the operation
src
dest
and
are treated as 16-bit data for the operation
R0L/R0
R0H/R1
*1
A0/A0
A1/A1
dsp:8[A1]
dsp:16[A0] dsp:16[A1] dsp:16[SB] abs16
dsp:20[A0] dsp:20[A1] abs20
R2R0
R3R1
; 8 low-order bits of R0L and A0 are multiplied.
3.2 Functions
MUL
dest
src
dest
or
, the operation is
dest
, the result is stored in R2R0,
dest
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
A1A0
src
dest
and
Page: 203
.
simulta-

Advertisement

Table of Contents
loading

Table of Contents