
77
Chapter 3 Functions
3.2 Functions
INCrement
Increment
[ Description Example ]
INC.W A0
INC.B R0L
[ Related Instructions ] DEC
[ Function ]
[ Selectable dest ]
INC INC
[ Flag Change ]
B , W
[ Syntax ]
INC.size dest
[ Operation ]
dest dest + 1
*1
You can only specify (.B) for the size specifier (.size).
*2
You can only specify (.W) for the size specifier (.size).
dest
R0L
*1
R0H
*1
dsp:8[SB]
*1
dsp:8[FB]
*1
abs16
*1
A0
*2
A1
*2
UIOBSZDC
Conditions
S : The flag is set when the operation resulted in MSB = 1; otherwise cleared.
Z : The flag is set when the operation resulted in 0; otherwise cleared.
• This instruction adds 1 to
dest
and stores the result in
dest
.
[ Instruction Code/Number of Cycles ]
Page=
182
Flag
Change
Comentarios a estos manuales