Btst - 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

BTST

[ Syntax ]
BTST (:format)
[ Operation ]
______
Z
src
C
src
[ Function ]
• This instruction transfers the inverted value of
the C flag.
[ Selectable src ]
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]
src
*1 This
can only be selected when in S format.
[ Flag Change ]
Flag
U
I
O B
Change
Conditions
Z :
The flag is set when
C :
The flag is set when
[ Description Example ]
BTST
flag
BTST
4,Ram:8[SB]
BTST
16,Ram:16[SB]
BTST
[A0]
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
src
src
bit,R2
bit,R3
[A0]
[A1]
bit,base:8[SB] bit,base:8[FB]
bit,base:16[SB] bit,base:16
*1
S
Z
D
C
src
is 0; otherwise cleared.
src
is 1; otherwise cleared.
BCLR, BSET, BNOT, BNTST, BTSTC, BTSTS
page 58 of 263
Test bit
Bit TeST
[ Instruction Code/Number of Cycles ]
G , S (Can be specified)
src
to the Z flag and the non-inverted value of
3.2 Functions
BTST
Page: 158
src
to

Advertisement

Table of Contents
loading

Table of Contents