z80:Opcodes:SRA
From Learn @ Cemetech
Jump to navigationJump to searchArithmetic shift right 1 bit, bit 0 goes to carry flag, bit 7 remains unchanged.
Syntax
sra op8
Allowed Instructions
SRA A SRA B SRA C SRA D SRA E SRA H SRA L SRA (HL) SRA (IX+d) SRA (IY+d)
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