Hitachi H8/3152 Hardware Manual page 36

Single-chip microcomputer h8/3150 series
Table of Contents

Advertisement

Table 2.8
Bit-Manipulation Instructions (cont)
Instruction
Size*
BXOR
B
BIXOR
B
BLD
B
BILD
B
BST
B
BIST
B
Note: * Size: Operand size
B: Byte
Note on Bit Manipulation Instructions: BSET, BCLR, BNOT, BST, and BIST are read-modify-
write instructions. They read a byte of data, modify one bit in the byte, then write the modified
byte back to the same address.
Step
Operation
1
Read
Read data (1 byte) at a specified address
2
Modify
Modify one specified bit in the read data
3
Write
Write the modified data back to the specified address
30
Function
C ⊕ (<bit-No.> of <EAd>) → C
Exclusive-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
Exclusive-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>) → C
Transfers a specified bit in a general register or memory to the C
flag.
~ (<bit-No.> of <EAd>) → C
Transfers the inverse of a specified bit in a general register or
memory to the C flag.
The bit number is specified by 3-bit immediate data.
C → (<bit-No.> of <EAd>)
Transfers the C flag value to a specified bit in a general register or
memory.
~ C → (<bit-No.> of <EAd>)
Transfers the inverse of the C flag value to a specified bit in a
general register or memory.
The bit number is specified by 3-bit immediate data.

Advertisement

Table of Contents
loading

Table of Contents