
80
Chapter 3 Functions
3.2 Functions
Cnd
Condition
Expression
Cnd
Condition
Expression
GEU/C C=1
Equal to or greater than
LTU/NC C=0
Smaller than
C flag is 1.
C flag is 0.
EQ/Z
Z=1
Equal to
=
NE/NZ
Z=0
Not equal
Z flag is 1.
Z flag is 0.
GTU
____
C Z=1
Greater than
LEU
____
C Z=0
Equal to or smaller than
PZ
S=0
Positive or zero 0
N
S=1
Negative 0
GE
S O=0
Equal to or greater than
LE
(S O) Z=1 Equal to or smaller than
(signed value)
(signed value)
GT
(S O) Z=0 Greater than (signed value)
LT
S O=1
Smaller than (signed value)
O
O=1
O flag is 1.
NO
O=0
O flag is 0.
≠
Jump on Condition
Jump on condition
[ Syntax ]
J
Cnd label
[ Selectable label ]
[ Description Example ]
JEQ
label
JNE
label
[ Related Instructions ]
BM
Cnd
[ Function ]
[ Operation ]
if true then jump label
J
Cnd
[ Flag Change ]
label
Cnd
PC
*1
–127 label PC
*1
+128
GEU/C,GTU,EQ/Z,N,LTU/NC,LEU,NE/NZ,PZ
PC
*1
–126 label PC
*1
+129
LE,O,GE,GT,NO,LT
U
I
O
B
S
Z
D
C
*1 PC indicates the start address of the instruction.
J
Cnd
[ Instruction Code/Number of Cycles ]
Page=182
• This instruction causes program flow to branch off after checking the execution result of the preceding
instruction against the following condition. If the condition indicated by
Cnd
is true, control jumps to
label. If false, the next instruction is executed.
• The following conditions can be used for
Cnd
:
Flag
Change
A
A
A
A
Summary of Contents for R8C/Tiny Series
Page 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Page 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Page 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Page 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...