Renesas R8C/Tiny Series Software Manual page 61

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

Advertisement

Chapter 3
Functions
ADJNZ
[ Syntax ]
ADJNZ.size src,dest,label
[ Operation ]
dest
dest
+
if dest
0 then jump label
[ Function ]
• This instruction adds
• If the addition resulted in any value other than 0, control jumps to label. If the addition resulted in 0,
the next instruction is executed.
• The op-code of this instruction is the same as that of SBJNZ.
[ Selectable src/dest/label ]
src
*1
#IMM
*1 The range of values that can be taken on is –8 < #IMM < +7.
*2 PC indicates the start address of the instruction.
[ Flag Change ]
Flag
U
I
O
Change
[ Description Example ]
ADJNZ.W
#–1,R0,label
[ Related Instructions ]
Add & conditional jump
ADdition then Jump on Not Zero
src
dest
src
and
together and stores the result in
R0L/R0
R1H/R3
[A0]
dsp:8[A1]
dsp:16[A0] dsp:16[A1] dsp:16[SB]
abs16
B
S
Z
D
C
SBJNZ
[ Instruction Code/Number of Cycles ]
B , W
dest
R0H/R1
R1L/R2
A0/A0
A1/A1
[A1]
dsp:8[A0]
dsp:8[SB]
dsp:8[FB]
44
3.2
ADJNZ
dest
.
label
*2
PC
–126
label
PC
Functions
Page=146
*2
+129

Advertisement

Table of Contents
loading

Table of Contents