fn increment_vram_addr_coarse_x(&mut self) {
        if self.current_vram_addr.get_coarse_x() == 0b11111 {
            // if the coarse x component of 'current_vram_addr' is the highest
            // value it can be (31), clear all coarse x bits and overflow
            // into bit 10 (move to next nametable horizontally)
            self.current_vram_addr.set_coarse_x(0);
            self.current_vram_addr.inner ^= 0b10000000000;
        } else {
            // if not highest value, increment normally
            self.current_vram_addr.inner += 1;
        }
    }
// increments the coarse x scroll/position bits in 'current_vram_addr'
// (corresponds to moving one tile to the right in the current nametable)
increments the coarse x scroll/position bits in 'current_vram_addr'
(corresponds to moving one tile to the right in the current nametable)
increments the coarse x scroll / position bits in ' current_vram_addr ' ( corresponds to moving one tile to the right in the current nametable )
fn increment_vram_addr_coarse_x(&mut self) {
        if self.current_vram_addr.get_coarse_x() == 0b11111 {
            // if the coarse x component of 'current_vram_addr' is the highest
            // value it can be (31), clear all coarse x bits and overflow
            // into bit 10 (move to next nametable horizontally)
            self.current_vram_addr.set_coarse_x(0);
            self.current_vram_addr.inner ^= 0b10000000000;
        } else {
            // if not highest value, increment normally
            self.current_vram_addr.inner += 1;
        }
    }
fn increment_vram_addr_coarse_x ( & mut self ) { if self . current_vram_addr . get_coarse_x ( ) == 0b11111 { // if the coarse x component of 'current_vram_addr' is the highest // value it can be (31), clear all coarse x bits and overflow // into bit 10 (move to next nametable horizontally) self . current_vram_addr . set_coarse_x ( 0 ) ; self . current_vram_addr . inner ^= 0b10000000000 ; } else { // if not highest value, increment normally self . current_vram_addr . inner += 1 ; } }
increments the coarse x scroll/position bits in 'current_vram_addr'
(corresponds to moving one tile to the right in the current nametable)
increments the coarse x scroll / position bits in ' current_vram_addr ' ( corresponds to moving one tile to the right in the current nametable )
&mut self
&mut self