SRA

Arithmetic shift right 1 bit, bit 0 goes to carry flag, bit 7 remains unchanged.

Syntax

SRA A
SRA B
SRA C
SRA D
SRA E
SRA H
SRA L
SRA (HL)
SRA (IX+d)
SRA (IY+d)

Allowed Instructions

Effects

S and Z set according to definition, H and N reset, C from bit 0, P/V if parity is 0.

Uses

T-States

r denotes 8-bit register.
r 8
(hl) 15
(ix+X) 23
(iy+X) 23

See Also

RL,RLA,RLC,RLCA,RLD,RR,RRA,RRC,RRCA,RRD,SLA,SLL/SL1,SRL

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.