Re: sra
Shifts register sX right by one place injecting the value of the carry flag
Added after 4 minutes:
SR0, SR1, SRX, SRA, RR of the shift and rotate group 358 all modify the contents of a single register sX to the right. SL0, SL1, SLX, SLA, RL all modify the contents of a single register sX to the left. These instructions effect the flags.
SR0/SL0—Shifts register sX right/left by one place injecting "0".
SR1/SL1—Shifts register sX right/left by one place injecting "1".
SRX/SLX—Shifts register sX right/left by one place injecting MSB/LSB.
SRA/SLA—Shifts register sX right/left by one place injecting the value of the carry flag.
RR/RL—Rotates register sX right/left by one place injecting LSB/MSB.