Move each of the bits in M one place to the right. Bit 7 is filled with the current value of the carry flag whilst the old bit 0 becomes the new carry flag value.

C 	Carry Flag 	  Set to contents of old bit 0
Z 	Zero Flag 	  Set if A = 0
I 	Interrupt Disable Not affected
D 	Decimal Mode Flag Not affected
B 	Break Command 	  Not affected
V 	Overflow Flag 	  Not affected
N 	Negative Flag 	  Set if bit 7 of the result is set

Ror is referenced in 1 repository