Logic Operations; Shift Operations - Renesas F-ZTAT H8 Series Hardware Manual

8-bit single-chip microcomputer
Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

2.5.3

Logic Operations

Table 2.6 describes the four instructions that perform logic operations.
Table 2.6
Logic Operation Instructions
Instruction
Size*
AND
B
OR
B
XOR
B
NOT
B
Note:
*
Size: Operand size
B:
Byte
2.5.4

Shift Operations

Table 2.7 describes the eight shift instructions.
Table 2.7
Shift Instructions
Instruction
Size*
SHAL
B
SHAR
SHLL
B
SHLR
ROTL
B
ROTR
ROTXL
B
ROTXR
Note:
Size: Operand size
*
B:
Byte
Function
Rd ∧ Rs → Rd, Rd ∧ #IMM → Rd
Performs a logical AND operation on a general register and another
general register or immediate data
Rd ∨ Rs → Rd, Rd ∨ #IMM → Rd
Performs a logical OR operation on a general register and another
general register or immediate data
Rd ⊕ Rs → Rd, Rd ⊕ #IMM → Rd
Performs a logical exclusive OR operation on a general register and
another general register or immediate data
~ Rd → Rd
Obtains the one's complement (logical complement) of general register
contents
Function
Rd shift → Rd
Performs an arithmetic shift operation on general register contents
Rd shift → Rd
Performs a logical shift operation on general register contents
Rd rotate → Rd
Rotates general register contents
Rd rotate → Rd
Rotates general register contents through the carry flag.
Rev.3.00 Jul. 19, 2007 page 45 of 532
REJ09B0397-0300
2. CPU

Advertisement

Table of Contents
loading

Table of Contents