Renesas R8C/Tiny Series Software Manual page 75

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 inverted
[ 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 ]
src
src
to the Z flag and non-inverted
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
Test bit
Bit TeST
[ Instruction Code/Number of Cycles ]
G , S (Can be specified)
58
3.2 Functions
BTST
Page=158
src
to the C flag.

Advertisement

Table of Contents
loading

Table of Contents