49
3.2 Functions
Chapter 3 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.
≠
Bit Move Condition
Conditional bit transfer
[ Related Instructions ]
J
Cnd
BM
Cnd
BM
Cnd
[ Syntax ]
BM
Cnd
dest
[ Operation ]
if true then
dest 1
else
dest 0
[ Flag Change ]
[ Selectable dest ]
dest
bit,R0
bit,R1
bit,R2
bit,R3
bit,A0
bit,A1
[A0]
[A1]
base:8[A0]
base:8[A1]
bit,base:8[SB] bit,base:8[FB]
base:16[A0]
base:16[A1]
bit,base:16[SB] bit,base:16
C
bit,base:11[SB]
[ Description Example ]
BMN
3,Ram:8[SB]
BMZ
C
• This instruction transfers the true or false value of the condition indicated by
Cnd
to
dest
. If the
condition is true, 1 is transferred; if false, 0 is transferred.
• There are following kinds of
Cnd
.
*1 The flag changes if you specified the C flag for
dest
.
U
I
O
B
S
Z
D
C
*1
[ Function ]
[ Instruction Code/Number of Cycles ]
Page=152
Change
Flag
A
A
A
A
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...