Adjnz - Renesas R8C/Tiny Series Software Manual

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 results in any value other than 0, control jumps to label. If the addition results 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 acceptable range of values 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 ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Add and conditional jump
ADdition then Jump on Not Zero
src
dest
src
and
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
page 44 of 263
[ Instruction Code/Number of Cycles ]
B , W
dest
.
dest
R0H/R1
R1L/R2
A0/A0
A1/A1
[A1]
dsp:8[A0]
dsp:8[SB]
dsp:8[FB]
3.2
ADJNZ
label
*2
*2
PC
–126
label
PC
Functions
Page: 146
+129

Advertisement

Table of Contents
loading

Table of Contents