UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
87
CLR
Clear
CLR dst
Operation
dst
←
00H
Description
The destination operand is cleared to 00H.
Flags
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR can specify a Working Register.
If the destination address is prefixed by
EH
(1110B), a Working Register is inferred. For
example, if Working Register R12 (
CH
) is the desired destination operand, use
ECH
as the
destination operand in the opcode. To access Registers with addresses
E0H
to
EFH
, either
set the Working Group Pointer, RP[7:4], to
EH
or use indirect addressing.
Examples
•
Using Escaped Mode Addressing, if Working Register R6 contains
AFH
, the
statement:
CLR R6
Object Code: B0 E6
leaves the value
00H
in Working Register R6.
C
Unaffected.
Z
Unaffected.
S
Unaffected.
V
Unaffected.
D
Unaffected.
H
Unaffected.
Mnemonic
Destination
Opcode (Hex)
Operand 1
Operand 2
Operand 3
CLR
R1
B0
R1
—
—
CLR
@R1
B1
R1
—
—