UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
66
ANDX
Logical AND using Extended Addressing
ANDX dst, src
Operation
dst
←
dst AND src
Description
The source operand is AND’ed with the destination operand. An AND operation stores a 1
when the corresponding bits in the two operands are both 1; otherwise this operation stores
a 0. The destination operand stores the result. The contents of the source operand are unaf-
fected.
Flags
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address mode ER for the source or destination can spec-
ify a Working Register with 4-bit addressing.
If the high byte of the source or destination address is
EEH
(11101110B), a Working Regis-
ter is inferred. For example, the operand EE3H selects Working Register R3. The full 12-
bit address is given by {RP[3:0], RP[7:4], 3H}.
To access Registers on Page EH (addresses E00H to EFFH), set the Page Pointer, RP[3:0],
to
EH
and set the Working Group Pointer, RP[7:4], to the desired Working Group.
C
Unaffected.
Z
Set if the result is zero; reset otherwise.
S
Set if the result is negative; reset otherwise.
V
Reset to 0.
D
Unaffected.
H
Unaffected.
Mnemonic Destination, Source
Opcode (Hex)
Operand 1
Operand 2
Operand 3
ANDX
ER1, ER2
58
ER2[11:4]
{ER2[3:0], ER1[11:8]} ER1[7:0]
ANDX
ER1, IM
59
IM
{0H, ER1[11:8]}
ER1[7:0]