Renesas R8C/Tiny Series Software Manual page 98

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

Advertisement

Chapter 3
Functions
J Cnd
[ Syntax ]
J Cnd label
[ Operation ]
if true then jump label
[ Function ]
• This instruction causes program flow to branch after checking the execution result of the preceding
instruction against the following condition. If the condition indicated by
label. If false, the next instruction is executed.
• The following conditions can be used for
Cnd
Condition
GEU/C C=1
Equal to or greater than
C flag is 1.
EQ/Z
Z=1
Equal to
Z flag is 1.
____
GTU
C Z=1
Greater than
PZ
S=0
Positive or zero
A
GE
S O=0
Equal to or greater than
(signed value)
A
GT
(S O) Z=0 Greater than (signed value)
O
O=1
O flag is 1.
[ Selectable label ]
label
PC
*1
–127
label
PC
*1
–126
label
*1 PC indicates the start address of the instruction.
[ Flag Change ]
Flag
U
I
O
Change
[ Description Example ]
JEQ
label
JNE
label
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Jump on condition
Jump on Condition
Expression
PC
*1
+128
GEU/C, GTU, EQ/Z, N, LTU/NC, LEU, NE/NZ, PZ
PC
*1
+129
LE, O, GE, GT, NO, LT
B
S
Z
D
C
Cnd
BM
page 80 of 263
[ Instruction Code/Number of Cycles ]
Cnd
:
Cnd
LTU/NC C=0
=
NE/NZ Z=0
____
LEU
C Z=0
0
N
S=1
A
LE
(S O) Z=1 Equal to or smaller than
A
LT
S O=1
NO
O=0
Cnd
3.2 Functions
J Cnd
Cnd
is true, control jumps to
Condition
Expression
Smaller than
C flag is 0.
Not equal
Z flag is 0.
Equal to or smaller than
Negative
(signed value)
Smaller than (signed value)
O flag is 0.
Page: 182
0

Advertisement

Table of Contents
loading

Table of Contents