z80:Opcodes:SRA

From Learn @ Cemetech
Revision as of 22:22, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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