Logic Operations - Renesas H8 Series Hardware Manual

8-bit single-chip microcomputer
Hide thumbs Also See for 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
Size *
Instruction
AND
B
OR
B
XOR
B
NOT
B
Notes: *
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
Rev. 7.00 Mar 10, 2005 page 43 of 652
Section 2 CPU
REJ09B0042-0700

Advertisement

Table of Contents
loading

Table of Contents