Btstc - Renesas R8C/Tiny Series Software Manual

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

Advertisement

Chapter 3
Functions

BTSTC

[ Syntax ]
BTSTC
dest
[ Operation ]
________
Z
dest
C
dest
dest
0
[ Function ]
• This instruction transfers the inverted value of
dest
to the C flag. Then it stores 0 in
[ Selectable dest ]
[ Flag Change ]
Flag
U
I
O
Change
Conditions
Z :
The flag is set when
C :
The flag is set when
[ Description Example ]
BTSTC
flag
BTSTC
4,Ram
BTSTC
16,Ram:16[SB]
BTSTC
[A0]
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Test bit and clear
Bit TeST and Clear
B
S
Z
D
C
dest
is 0; otherwise cleared.
dest
is 1; otherwise cleared.
BCLR, BSET, BNOT, BNTST, BTST, BTSTS
page 59 of 263
[ Instruction Code/Number of Cycles ]
dest
to the Z flag and the non-inverted value of
dest
.
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]
3.2 Functions
BTSTC
Page: 159
dest
bit,R2
bit,R3
[A0]
[A1]
bit,base:8[SB] bit,base:8[FB]
bit,base:16[SB] bit,base:16

Advertisement

Table of Contents
loading

Table of Contents