Hitachi H8/3048 Hardware Manual page 47

Single-chip microcomputer
Table of Contents

Advertisement

Table 2-5 Logic Operation Instructions
www.DataSheet4U.com
Instruction Size*
Function
Rd ∧ Rs → Rd, Rd ∧ #IMM → Rd
AND
B/W/L
Performs a logical AND operation on a general register and another general
register or immediate data.
Rd ∨ Rs → Rd, Rd ∨ #IMM → Rd
OR
B/W/L
Performs a logical OR operation on a general register and another general
register or immediate data.
Rd ⊕ Rs → Rd, Rd ⊕ #IMM → Rd
XOR
B/W/L
Performs a logical exclusive OR operation on a general register and another
general register or immediate data.
¬ Rd → Rd
NOT
B/W/L
Takes the one's complement of general register contents.
Note: * Size refers to the operand size.
B: Byte
W: Word
L: Longword
Table 2-6 Shift Instructions
Instruction Size*
Function
Rd (shift) → Rd
SHAL,
B/W/L
SHAR
Performs an arithmetic shift on general register contents.
Rd (shift) → Rd
SHLL,
B/W/L
SHLR
Performs a logical shift on general register contents.
Rd (rotate) → Rd
ROTL,
B/W/L
ROTR
Rotates general register contents.
Rd (rotate) → Rd
ROTXL,
B/W/L
ROTXR
Rotates general register contents through the carry bit.
Note: * Size refers to the operand size.
B: Byte
W: Word
L: Longword
32

Advertisement

Table of Contents
loading

Table of Contents