fn tile_addr(self, tile: u8) -> u16 {
        match self {
            // For `Set0` `tile` is signed and in the range [-128,
            // 127]. Tile 0 is at offset 0x1000.
            TileSet::Set0 => (0x1000 + (((tile as i8) as i16) * 16)) as u16,
            // `Set1` is unsigned and starts at offset 0x0000
            TileSet::Set1  => 0x0 + (tile as u16) * 16,
        }
    }
/// Return VRAM offset of `tile` for the tileset.
Return VRAM offset of `tile` for the tileset.
Return VRAM offset of ` tile ` for the tileset .
fn tile_addr(self, tile: u8) -> u16 {
        match self {
            // For `Set0` `tile` is signed and in the range [-128,
            // 127]. Tile 0 is at offset 0x1000.
            TileSet::Set0 => (0x1000 + (((tile as i8) as i16) * 16)) as u16,
            // `Set1` is unsigned and starts at offset 0x0000
            TileSet::Set1  => 0x0 + (tile as u16) * 16,
        }
    }
fn tile_addr ( self , tile : u8 ) -> u16 { match self { // For `Set0` `tile` is signed and in the range [-128, // 127]. Tile 0 is at offset 0x1000. TileSet :: Set0 => ( 0x1000 + ( ( ( tile as i8 ) as i16 ) * 16 ) ) as u16 , // `Set1` is unsigned and starts at offset 0x0000 TileSet :: Set1 => 0x0 + ( tile as u16 ) * 16 , } }
Return VRAM offset of `tile` for the tileset.
Return VRAM offset of ` tile ` for the tileset .
self
tile
u8
self
tile
u8