UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
172
SRL
Shift Right Logical
SRL dst
Operation
Description
The destination operand contents shift right logical by one bit position. The initial value of
Bit 0 moves into the Carry (C) flag. Bit 7 resets to 0.
Flags
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR 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.
C
Gets value from Bit 0 of the destination.
Z
Set if the result is zero; reset otherwise.
S
Reset to 0.
V
Set if an arithmetic overflow occurs; reset otherwise.
D
Unaffected.
H
Unaffected.
Mnemonic
Destination
Opcode (Hex)
Operand 1
Operand 2
Operand 3
SRL
R1
1F C0
R1
—
—
SRL
@R1
1F C1
R1
—
—
D7 D6 D5 D4 D3 D2 D1 D0
dst
C
0