Renesas R8C/Tiny Series Software Manual page 133

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

Advertisement

Chapter 3
Functions
SBJNZ
[ Syntax ]
SBJNZ.size src,dest,label
[ Operation ]
dest
dest
if dest 0 then jump label
[ Function ]
• This instruction subtracts
• If the operation results in any value other than 0, control jumps to label. If the operation results in 0,
the next instruction is executed.
• The op-code of this instruction is the same as that of ADJNZ.
[ Selectable src/dest/label ]
src
*1
#IMM
*1 The acceptable range of values is –7 < #IMM < +8.
*2 PC indicates the start address of the instruction.
[ Flag Change ]
U
I
O
Flag
Change
[ Description Example ]
SBJNZ.W
#1,R0,label
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Subtract and conditional jump
SuBtract then Jump on Not Zero
src
src
dest
from
R0L/R0
R1H/R3
[A0]
dsp:8[A1]
dsp:16[A0] dsp:16[A1] dsp:16[SB]
abs16
B
S
Z
D
C
ADJNZ
page 115 of 263
[ Instruction Code/Number of Cycles ]
B , W
and stores the result in
dest
R0H/R1
R1L/R2
A0/A0
A1/A1
[A1]
dsp:8[A0]
dsp:8[SB] dsp:8[FB]
3.2
SBJNZ
dest
.
label
*2
PC
–126 < label < PC
Functions
Page: 224
*2
+129

Advertisement

Table of Contents
loading

Table of Contents