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