And (And Logical) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

AND (AND logical)

<Operation>
Rd ∧ (EAs) → Rd
<Assembly-Language Format>
AND <EAs>, Rd
<Examples>
AND R6H, R6L
AND #H'FD, R0H
<Operand Size>
Byte
<Description>
This instruction ANDs the source operand with the contents of an 8-bit general register and
places the result in the 8-bit general register.
The source operand can be an 8-bit register value or immediate byte data.
<Instruction Formats>
Addressing
mode
Immediate
Register direct
Mnem.
Operands
AND
#xx:8, Rd
AND
Rs, Rd
<Condition Code>
I
— — — —
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Set to "1" when the result is negative;
otherwise cleared to "0."
Z: Set to "1" when the result is zero;
otherwise cleared to "0."
V: Cleared to "0."
C: Previous value remains unchanged.
Instruction code
1st byte
2nd byte
E
rd
IMM
1
6
rs
rd
41
H
N
Z
3rd byte
4th byte
AND
V
C
0
No. of
states
2
2

Advertisement

Table of Contents
loading

Table of Contents