pub(crate) fn skp_vx(&mut self, optcode: u16) {
        debug!("SKPVx => {:#X}", optcode);
        let (_x, _ ) = vx_vy!(optcode);
        let _vx = self.v[_x] as usize;
        info!("k[{}]: {}", _vx, self.keyboard[_vx]);
        self.pc += skip_if!(self.keyboard[_vx]);
        //self.quit = true;
    }
/// Ex9E - SKP Vx
/// Skip next instruction if key with the value of Vx is pressed.
/// Checks the keyboard, and if the key corresponding to the value of Vx is currently in the down position, PC is increased by 2.
SKP Vx
Skip next instruction if key with the value of Vx is pressed.
Checks the keyboard, and if the key corresponding to the value of Vx is currently in the down position, PC is increased by 2.
SKP Vx Skip next instruction if key with the value of Vx is pressed . Checks the keyboard and if the key corresponding to the value of Vx is currently in the down position PC is increased by 2 .
pub(crate) fn skp_vx(&mut self, optcode: u16) {
        debug!("SKPVx => {:#X}", optcode);
        let (_x, _ ) = vx_vy!(optcode);
        let _vx = self.v[_x] as usize;
        info!("k[{}]: {}", _vx, self.keyboard[_vx]);
        self.pc += skip_if!(self.keyboard[_vx]);
        //self.quit = true;
    }
pub ( crate ) fn skp_vx ( & mut self , optcode : u16 ) { debug ! ( " " optcode ) ; let ( _x , _ ) = vx_vy ! ( optcode ) ; let _vx = self . v [ _x ] as usize ; info ! ( " " _vx self keyboard [ _vx ] ) ; self . pc += skip_if ! ( self keyboard [ _vx ] ) ; //self.quit = true; }
Ex9E - SKP Vx
Skip next instruction if key with the value of Vx is pressed.
Ex9E - SKP Vx Skip next instruction if key with the value of Vx is pressed .
&mut self
optcode
u16
&mut self
optcode
u16