fn shr(&mut self, reg: u8)
	{
		let val = self.v[reg as usize];

		self.v[0xF] = if 0b1 & val == 1 { 1 } else { 0 };
		self.v[reg as usize] = val >> 1;
	}
/// Set Vreg = Vreg SHR 1.
/// If the least-significant bit of Vreg is 1, then VF is set to 1, otherwise 0. Then Vreg is divided by 2.
Set Vreg = Vreg SHR 1.
If the least-significant bit of Vreg is 1, then VF is set to 1, otherwise 0. Then Vreg is divided by 2.
Set Vreg = Vreg SHR 1 . If the least - significant bit of Vreg is 1 then VF is set to 1 otherwise 0 . Then Vreg is divided by 2 .
fn shr(&mut self, reg: u8)
	{
		let val = self.v[reg as usize];
		self.v[0xF] = if 0b1 & val == 1 { 1 } else { 0 };
		self.v[reg as usize] = val >> 1;
	}
fn shr ( & mut self , reg : u8 ) { let val = self . v [ reg as usize ] ; self . v [ 0xF ] = if 0b1 & val == 1 { 1 } else { 0 } ; self . v [ reg as usize ] = val >> 1 ; }
Set Vreg = Vreg SHR 1.
Set Vreg = Vreg SHR 1 .
&mut self
reg
u8