pub fn from_id(id: u8) -> Model {
    match id {
        0           => mbc0::MODEL,
        0x01...0x03 => mbc1::MODEL,
        0x05...0x06 => mbc2::MODEL,
        0x0f...0x13 => mbc3::MODEL,
        _           => panic!("Unknown cartridge model 0x{:02x}", id),
    }
}
/// Return a cartridge instance for a given cartridge type
Return a cartridge instance for a given cartridge type
Return a cartridge instance for a given cartridge type
pub fn from_id(id: u8) -> Model {
    match id {
        0           => mbc0::MODEL,
        0x01...0x03 => mbc1::MODEL,
        0x05...0x06 => mbc2::MODEL,
        0x0f...0x13 => mbc3::MODEL,
        _           => panic!("Unknown cartridge model 0x{:02x}", id),
    }
}
pub fn from_id ( id : u8 ) -> Model { match id { 0 => mbc0 :: MODEL , 0x01 ... 0x03 => mbc1 :: MODEL , 0x05 ... 0x06 => mbc2 :: MODEL , 0x0f ... 0x13 => mbc3 :: MODEL , _ => panic ! ( " " id ) , } }
Return a cartridge instance for a given cartridge type
Return a cartridge instance for a given cartridge type
id
u8
id
u8