3.5.3 Logic Operations
Table 3-6 describes the four instructions that perform logic operations. See figure 3-6 in
section 3.5.4, “Shift Operations,” for their object codes.
Table 3-6. Logic Operation Instructions
Note: * Size: operand size
B: Byte
3.5.4 Shift Operations
Table 3-7 describes the eight shift instructions. Figure 3-6 shows the object code formats of the
arithmetic, logic, and shift instructions.
Table 3-7. Shift Instructions
Note: * Size: operand size
B: Byte
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.
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.
41
Summary of Contents for H8/326 Series
Page 67: ...58 ...
Page 121: ...112 ...
Page 274: ... 3 Clock Settling Timing Ø VCC RES STBY tOSC1 tOSC1 Figure 14 8 Clock Setting Timing 265 ...
Page 279: ...270 ...