fn bg_tile_addr(&self, tile: u8) -> usize {
        let t = tile as usize;
        if (self.lcdc.get() & 0x10) == 0x10 {
            t << 4
        } else {
            if (t & 0x80) == 0x80 {
                0x1000 - ((!t + 1) << 4)
            } else {
                0x1000 + (t << 4)
            }
        }
    }
// Also used for window tile address
Also used for window tile address
Also used for window tile address
fn bg_tile_addr(&self, tile: u8) -> usize {
        let t = tile as usize;
        if (self.lcdc.get() & 0x10) == 0x10 {
            t << 4
        } else {
            if (t & 0x80) == 0x80 {
                0x1000 - ((!t + 1) << 4)
            } else {
                0x1000 + (t << 4)
            }
        }
    }
fn bg_tile_addr ( & self , tile : u8 ) -> usize { let t = tile as usize ; if ( self . lcdc . get ( ) & 0x10 ) == 0x10 { t << 4 } else { if ( t & 0x80 ) == 0x80 { 0x1000 - ( ( ! t + 1 ) << 4 ) } else { 0x1000 + ( t << 4 ) } } }
Also used for window tile address
Also used for window tile address
&self
tile
u8