hd64338023s Renesas Electronics Corporation., hd64338023s Datasheet - Page 88

no-image

hd64338023s

Manufacturer Part Number
hd64338023s
Description
Renesas 8-bit Single-chip Microcomputer Super Low Power Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 2 CPU
2.5.5
Table 2.8 describes the bit-manipulation instructions. Figure 2.7 shows their object code formats.
Table 2.8
Instruction
BSET
BCLR
BNOT
BTST
BAND
BIAND
BOR
BIOR
Notes: *
Rev. 7.00 Mar 10, 2005 page 46 of 652
REJ09B0042-0700
Bit Manipulations
Size: Operand size
B:
Bit-Manipulation Instructions
Byte
Size *
B
B
B
B
B
B
B
B
Function
1 → (<bit-No.> of <EAd>)
Sets a specified bit in a general register or memory to 1. The bit
number is specified by 3-bit immediate data or the lower three bits
of a general register.
0 → (<bit-No.> of <EAd>)
Clears a specified bit in a general register or memory to 0. The bit
number is specified by 3-bit immediate data or the lower three bits
of a general register.
~ (<bit-No.> of <EAd>) → (<bit-No.> of <EAd>)
Inverts a specified bit in a general register or memory. The bit
number is specified by 3-bit immediate data or the lower three bits
of a general register.
Tests a specified bit in a general register or memory and sets or
clears the Z flag accordingly. The bit number is specified by 3-bit
immediate data or the lower three bits of a general register.
ANDs the C flag with a specified bit in a general register or
memory, and stores the result in the C flag.
ANDs the C flag with the inverse of a specified bit in a general
register or memory, and stores the result in the C flag.
The bit number is specified by 3-bit immediate data.
ORs the C flag with a specified bit in a general register or memory,
and stores the result in the C flag.
C ∨ [~ (<bit-No.> of <EAd>)] → C
ORs the C flag with the inverse of a specified bit in a general
register or memory, and stores the result in the C flag.
The bit number is specified by 3-bit immediate data.
~ (<bit-No.> of <EAd>) → Z
C ∧ (<bit-No.> of <EAd>) → C
C ∧ [~ (<bit-No.> of <EAd>)] → C
C ∨ (<bit-No.> of <EAd>) → C

Related parts for hd64338023s