pub fn new(bios: BiosRom, cart: Cartridge) -> GbMmu {
        GbMmu {
            bios,
            cart,
            vram: [0; 0x2000],
            wram: [0; 0x2000],
            oam: [0; 160],
            io: MemMappedIo::new(),
            zram: [0; 127],
            interrupt_enable: InterruptEnable(InterruptFlags::empty()),
        }
    }
/// Construct a new MMU with the given bios and cartridge.
/// Panics if the given bios data is not exactly 256 bytes.
Construct a new MMU with the given bios and cartridge.
Panics if the given bios data is not exactly 256 bytes.
Construct a new MMU with the given bios and cartridge . Panics if the given bios data is not exactly 256 bytes .
pub fn new(bios: BiosRom, cart: Cartridge) -> GbMmu {
        GbMmu {
            bios,
            cart,
            vram: [0; 0x2000],
            wram: [0; 0x2000],
            oam: [0; 160],
            io: MemMappedIo::new(),
            zram: [0; 127],
            interrupt_enable: InterruptEnable(InterruptFlags::empty()),
        }
    }
pub fn new ( bios : BiosRom , cart : Cartridge ) -> GbMmu { GbMmu { bios , cart , vram : [ 0 ; 0x2000 ] , wram : [ 0 ; 0x2000 ] , oam : [ 0 ; 160 ] , io : MemMappedIo :: new ( ) , zram : [ 0 ; 127 ] , interrupt_enable : InterruptEnable ( InterruptFlags :: empty ( ) ) , } }
Construct a new MMU with the given bios and cartridge.
Construct a new MMU with the given bios and cartridge .
bios
BiosRom
cart
Cartridge
bios
BiosRom
cart
Cartridge