pub(crate) fn ld_vx_k(&mut self, optcode: u16) {
        debug!("LDVxK => {:#X}", optcode);
        let (_vx, _) = vx_vy!(optcode);
        for i in 0..self.keyboard.len() {
            if self.keyboard[i] {
                self.v[_vx] = i as u8;
                self.pc += 2;
            }
        }
        //self.quit = true;
    }
/// Fx0A - LD Vx, K
/// Wait for a key press, store the value of the key in Vx.
/// All execution stops until a key is pressed, then the value of that key is stored in Vx.
LD Vx, K
Wait for a key press, store the value of the key in Vx.
All execution stops until a key is pressed, then the value of that key is stored in Vx.
LD Vx K Wait for a key press store the value of the key in Vx . All execution stops until a key is pressed then the value of that key is stored in Vx .
pub(crate) fn ld_vx_k(&mut self, optcode: u16) {
        debug!("LDVxK => {:#X}", optcode);
        let (_vx, _) = vx_vy!(optcode);
        for i in 0..self.keyboard.len() {
            if self.keyboard[i] {
                self.v[_vx] = i as u8;
                self.pc += 2;
            }
        }
        //self.quit = true;
    }
pub ( crate ) fn ld_vx_k ( & mut self , optcode : u16 ) { debug ! ( " " optcode ) ; let ( _vx , _ ) = vx_vy ! ( optcode ) ; for i in 0 .. self . keyboard . len ( ) { if self . keyboard [ i ] { self . v [ _vx ] = i as u8 ; self . pc += 2 ; } } //self.quit = true; }
Fx0A - LD Vx, K
Wait for a key press, store the value of the key in Vx.
Fx0A - LD Vx K Wait for a key press store the value of the key in Vx .
&mut self
optcode
u16
&mut self
optcode
u16