Renesas R8C/Tiny Series Software Manual page 111

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 you selected (.B) for the size specifier (.size),
result is stored in 16 bits. If you specified an A0 or A1 for either
the 8 low-order bits of A0 or A1.
• If you selected (.W) for the size specifier (.size),
result is stored in 32 bits. If you specified R0, R1, or A0 for
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 you specify (.B) for the size specifier (.size), you cannot choose A0 or A1 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 ]
Signed multiply
B , W
src
src
dest
and
together including the sign bits and stores the result in
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
MULtiple
[ Instruction Code/Number of Cycles ]
src
dest
and
both are operated on in 8 bits and the
src
src
dest
and
both are operated on in 16 bits and the
dest
, the result is stored in R2R0, R3R1, or
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
; R0L and A0's 8 low-order bits are multiplied.
94
3.2 Functions
MUL
dest
or
, operation is performed on
dest
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
A1A0
src
dest
and
Page=203
dest
.
simulta-

Advertisement

Table of Contents
loading

Table of Contents