beautypg.com

Zilog Z8F0130 User Manual

Page 241

background image

eZ8

CPU Core

User Manual

UM012820-0810

SRL Instruction

226

SRL

Definition

Shift Right Logical.

Syntax

SRL dst

Operation

Description

For this new eZ8 instruction, 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

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

D7 D6 D5 D4 D3 D2 D1 D0

dst

C

0