Renesas R8C/Tiny Series Software Manual page 84

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

Advertisement

Chapter 3
Functions
DEC
[ Syntax ]
DEC.size
dest
[ Operation ]
dest
dest
[ Function ]
• This instruction decrements
[ Selectable dest ]
[ Flag Change ]
Flag
U
I
O B
Change
Conditions
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.
[ Description Example ]
DEC.W
A0
DEC.B
R0L
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
1
dest
by 1 and stores the result in
S
Z
D
C
INC
page 66 of 263
Decrement
DECrement
[ Instruction Code/Number of Cycles ]
B , W
R0L
*1
R0H
abs16
*1
A0
*1 Only (.B) can be specified as the size specifier (.size).
*2 Only (.W) can be specified as the size specifier (.size).
3.2 Functions
dest
.
dest
*1
dsp:8[SB]
*1
*2
A1
*2
DEC
Page: 169
dsp:8[FB]
*1

Advertisement

Table of Contents
loading

Table of Contents