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