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

		self.v[0xF] = if (0b10000000 & val) >> 7 == 1 { 1 } else { 0 };
		self.v[reg as usize] = val << 1;
	}
/// Set Vreg = Vreg SHL 1.
/// If the most-significant bit of Vreg is 1, then VF is set to 1, otherwise to 0. Then Vreg is multiplied by 2.
Set Vreg = Vreg SHL 1.
If the most-significant bit of Vreg is 1, then VF is set to 1, otherwise to 0. Then Vreg is multiplied by 2.
Set Vreg = Vreg SHL 1 . If the most - significant bit of Vreg is 1 then VF is set to 1 otherwise to 0 . Then Vreg is multiplied by 2 .
fn shl(&mut self, reg: u8)
	{
		let val = self.v[reg as usize];
		self.v[0xF] = if (0b10000000 & val) >> 7 == 1 { 1 } else { 0 };
		self.v[reg as usize] = val << 1;
	}
fn shl ( & mut self , reg : u8 ) { let val = self . v [ reg as usize ] ; self . v [ 0xF ] = if ( 0b10000000 & val ) >> 7 == 1 { 1 } else { 0 } ; self . v [ reg as usize ] = val << 1 ; }
Set Vreg = Vreg SHL 1.
Set Vreg = Vreg SHL 1 .
&mut self
reg
u8