fn ram_bank_mut(&mut self) -> Option<&mut RamBank> {
        if self.ram_banks.is_empty() || !self.ram_enable {
            None
        } else if self.advanced_banking_mode {
            let bank = self.bank_set as usize % self.ram_banks.len();
            Some(&mut self.ram_banks[bank])
        } else {
            Some(&mut self.ram_banks[0])
        }
    }
/// Gets the currently selected ram bank, if the rom has ram and ram is enabled.
Gets the currently selected ram bank, if the rom has ram and ram is enabled.
Gets the currently selected ram bank if the rom has ram and ram is enabled .
fn ram_bank_mut(&mut self) -> Option<&mut RamBank> {
        if self.ram_banks.is_empty() || !self.ram_enable {
            None
        } else if self.advanced_banking_mode {
            let bank = self.bank_set as usize % self.ram_banks.len();
            Some(&mut self.ram_banks[bank])
        } else {
            Some(&mut self.ram_banks[0])
        }
    }
fn ram_bank_mut ( & mut self ) -> Option < & mut RamBank > { if self . ram_banks . is_empty ( ) || ! self . ram_enable { None } else if self . advanced_banking_mode { let bank = self . bank_set as usize % self . ram_banks . len ( ) ; Some ( & mut self . ram_banks [ bank ] ) } else { Some ( & mut self . ram_banks [ 0 ] ) } }
Gets the currently selected ram bank, if the rom has ram and ram is enabled.
Gets the currently selected ram bank if the rom has ram and ram is enabled .
&mut self
&mut self