Renesas R8C/Tiny Series Software Manual page 114

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

Advertisement

Chapter 3 Functions
NEG
[ Syntax ]
NEG.size
dest
[ Operation ]
dest
0
dest
[ Function ]
• This instruction takes the complement of two of
[ Selectable dest ]
[ Flag Change ]
Flag
U
I
O
Change
Conditions
O :
The flag is set when
S :
The flag is set when the operation results in MSB = 1; otherwise cleared.
Z :
The flag is set when the operation results in 0; otherwise cleared.
C :
The flag is set when the operation results in 0; otherwise cleared.
[ Description Example ]
NEG.B
R0L
NEG.W
A1
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Complement of two
B , W
B
S
Z
D
C
dest
before the operation is –128 (.B) or –32768 (.W); otherwise cleared.
NOT
page 96 of 263
NEGate
[ Instruction Code/Number of Cycles ]
dest
and stores the result in
R0L/R0
R0H/R1
A0/A0
A1/A1
dsp:8[A0]
dsp:8[A1]
dsp:16[A0] dsp:16[A1]
dsp:20[A0] dsp:20[A1]
R2R0
R3R1
3.2 Functions
NEG
Page: 207
dest
.
dest
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
dsp:16[SB]
abs16
abs20
A1A0

Advertisement

Table of Contents
loading

Table of Contents