Logic Operations; Table 2.6 Logic Operation Instructions - Renesas H8/3847R Series Hardware Manual

8-bit single-chip microcomputer super low power
Table of Contents

Advertisement

Section 2 CPU
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
Note:
* Size: Operand size
B:
Byte
Rev. 6.00 Aug 04, 2006 page 58 of 680
REJ09B0145-0600
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

Advertisement

Table of Contents
loading

Table of Contents