Renesas R8C/Tiny Series Software Manual page 66

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

Advertisement

Chapter 3
Functions
BM Cnd
[ Syntax ]
BM Cnd
dest
[ Operation ]
if true then
dest
else
dest
[ Function ]
• This instruction transfers the true or false value of the condition indicated by
condition is true, 1 is transferred; if false, 0 is transferred.
• There are following kinds of
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 dest ]
[ Flag Change ]
U
I
O
Flag
Change
[ Description Example ]
BMN
3,Ram:8[SB]
BMZ
C
[ Related Instructions ]
Conditional bit transfer
Bit Move Condition
1
0
Cnd
.
Expression
0
B
S
Z
D
C
*1
Cnd
J
[ Instruction Code/Number of Cycles ]
Cnd
LTU/NC C=0
=
NE/NZ Z=0
____
LEU
C Z=0
N
S=1
A
LE
(S O) Z=1 Equal to or smaller than
A
LT
S O=1
NO
O=0
bit,R0
bit,R1
bit,A0
bit,A1
base:8[A0]
base:8[A1]
base:16[A0]
base:16[A1]
C
bit,base:11[SB]
*1 The flag changes if you specified the C flag for
49
3.2
BM Cnd
Cnd
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.
dest
bit,R2
bit,R3
[A0]
[A1]
bit,base:8[SB] bit,base:8[FB]
bit,base:16[SB] bit,base:16
Functions
Page=152
dest
. If the
0
dest
.

Advertisement

Table of Contents
loading

Table of Contents