English
Language : 

HD6475328-CP10 Datasheet, PDF (75/459 Pages) Hitachi Semiconductor – original Hitachi CMOS microcomputer unit (MCU)
3.5.6 Bit Manipulations
Table 3-14 describes the four bit-manipulation instructions.
Table 3-14 Bit-Manipulation Instructions
Instruction
Bit
BSET
manipu-
lations
BCLR
Size
B/W
B/W
BNOT
B/W
BTST
B/W
Note: B—byte; W—word
Function
¬ (<bit-No.> of <EAd>) → Z,
1 → (<bit-No.> of <EAd>)
Tests a specified bit in a general register or memory, then
sets the bit to “1.” The bit is specified by a bit number
given in immediate data or a general register.
¬ (<bit-No.> of <EAd>) → Z,
0 → (<bit-No.> of <EAd>)
Tests a specified bit in a general register or memory, then
clears the bit to “0.” The bit is specified by a bit number
given in immediate data or a general register.
¬ (<bit-No.> of <EAd>) → Z,
→ (<bit-No.> of <EAd>)
Tests a specified bit in a general register or memory, then
inverts the bit. The bit is specified by a bit number given
in immediate data or a general register.
¬ (<bit-No.> of <EAd>) → Z
Tests a specified bit in a general register or memory. The
bit is specified by a bit number given in immediate data or
a general register.
56