Table 1-5. Logic Operation Instructions
Instruction Size*
Function
AND
B
Rd
∧
Rs
→
Rd, Rd
∧
#Imm
→
Rd
Performs a logical AND operation on a general register and
another general register or immediate data.
OR
B
Rd
∨
Rs
→
Rd, Rd
∨
#Imm
→
Rd
Performs a logical OR operation on a general register and another
general register or immediate data.
XOR
B
Rd
⊕
Rs
→
Rd, Rd
⊕
#Imm
→
Rd
Performs a logical exclusive OR operation on a general register
and another general register or immediate data.
NOT
B
¬ Rd
→
Rd
Obtains the one’s complement (logical complement) of general
register contents.
*
Size: Operand size
B: Byte
Table 1-6. Shift Instructions
Instruction Size*
Function
SHAL
B
Rd shift
→
Rd
SHAR
Performs an arithmetic shift operation on general register contents.
SHLL
B
Rd shift
→
Rd
SHLR
Performs a logical shift operation on general register contents.
ROTL
B
Rd rotate
→
Rd
ROTR
Rotates general register contents.
ROTXL
B
Rd rotate through carry
→
Rd
ROTXR
Rotates general register contents through the C (carry) bit.
*
Size: Operand size
B: Byte
12
Summary of Contents for H8/300 Series
Page 2: ...H8 300 Programming Manual...