fn parse_rom_banks(&self) -> Option<u8> {
        let id = self.rom_byte(offsets::ROM_SIZE as u16);

        let nbanks =
            match id {
                0x00 => 2,
                0x01 => 4,
                0x02 => 8,
                0x03 => 16,
                0x04 => 32,
                0x05 => 64,
                0x06 => 128,
                0x52 => 72,
                0x53 => 80,
                0x54 => 96,
                // Unknown value
                _    => return None,
            };

        Some(nbanks)
    }
/// Return the number of ROM banks declared in the header. Each
/// bank is 16KB.
Return the number of ROM banks declared in the header. Each
bank is 16KB.
Return the number of ROM banks declared in the header . Each bank is 16KB .
fn parse_rom_banks(&self) -> Option<u8> {
        let id = self.rom_byte(offsets::ROM_SIZE as u16);
        let nbanks =
            match id {
                0x00 => 2,
                0x01 => 4,
                0x02 => 8,
                0x03 => 16,
                0x04 => 32,
                0x05 => 64,
                0x06 => 128,
                0x52 => 72,
                0x53 => 80,
                0x54 => 96,
                // Unknown value
                _    => return None,
            };
        Some(nbanks)
    }
fn parse_rom_banks ( & self ) -> Option < u8 > { let id = self . rom_byte ( offsets :: ROM_SIZE as u16 ) ; let nbanks = match id { 0x00 => 2 , 0x01 => 4 , 0x02 => 8 , 0x03 => 16 , 0x04 => 32 , 0x05 => 64 , 0x06 => 128 , 0x52 => 72 , 0x53 => 80 , 0x54 => 96 , // Unknown value _ => return None , } ; Some ( nbanks ) }
Return the number of ROM banks declared in the header.
Return the number of ROM banks declared in the header .
&self
&self