pub(crate) fn ld_b_vx(&mut self, optcode: u16) {
        debug!("LDBVx => {:#X} - done", optcode);
        // let (_vx, _) = self.vx_vy(optcode);
        let (_x, _) = vx_vy!(optcode);
        let _vx = self.v[_x];
        self.memory[self.i] = _vx / 100;
        self.memory[self.i + 1] = _vx / 10 % 10;
        self.memory[self.i + 2] = _vx % 10;
        self.pc += 2;
        //self.quit = true;
    }
/// Fx33 - LD B, Vx
/// Store BCD representation of Vx in memory locations I, I+1, and I+2.
/// The interpreter takes the decimal value of Vx, and places the hundreds digit in memory at location in I, the tens digit at location I+1, and the ones digit at location I+2.
LD B, Vx
Store BCD representation of Vx in memory locations I, I+1, and I+2.
The interpreter takes the decimal value of Vx, and places the hundreds digit in memory at location in I, the tens digit at location I+1, and the ones digit at location I+2.
LD B Vx Store BCD representation of Vx in memory locations I I + 1 and I + 2 . The interpreter takes the decimal value of Vx and places the hundreds digit in memory at location in I the tens digit at location I + 1 and the ones digit at location I + 2 .
pub(crate) fn ld_b_vx(&mut self, optcode: u16) {
        debug!("LDBVx => {:#X} - done", optcode);
        // let (_vx, _) = self.vx_vy(optcode);
        let (_x, _) = vx_vy!(optcode);
        let _vx = self.v[_x];
        self.memory[self.i] = _vx / 100;
        self.memory[self.i + 1] = _vx / 10 % 10;
        self.memory[self.i + 2] = _vx % 10;
        self.pc += 2;
        //self.quit = true;
    }
pub ( crate ) fn ld_b_vx ( & mut self , optcode : u16 ) { debug ! ( " " optcode ) ; // let (_vx, _) = self.vx_vy(optcode); let ( _x , _ ) = vx_vy ! ( optcode ) ; let _vx = self . v [ _x ] ; self . memory [ self . i ] = _vx / 100 ; self . memory [ self . i + 1 ] = _vx / 10 % 10 ; self . memory [ self . i + 2 ] = _vx % 10 ; self . pc += 2 ; //self.quit = true; }
Fx33 - LD B, Vx
Store BCD representation of Vx in memory locations I, I+1, and I+2.
Fx33 - LD B Vx Store BCD representation of Vx in memory locations I I + 1 and I + 2 .
&mut self
optcode
u16
&mut self
optcode
u16