pub fn with_cart(cart: Cart) -> Self {
        let mapper = Mapper::with_cart(cart);
        MemoryBus {
            mapper,
            apu: APUState::new(),
            cpu: CPUState::new(),
            ppu: PPUState::new(),
            controller1: Controller::new(),
            controller2: Controller::new(),
            ram: [0; 0x2000],
        }
    }
/// Creates a memory bus from a c
Creates a memory bus from a c
Creates a memory bus from a c
pub fn with_cart(cart: Cart) -> Self {
        let mapper = Mapper::with_cart(cart);
        MemoryBus {
            mapper,
            apu: APUState::new(),
            cpu: CPUState::new(),
            ppu: PPUState::new(),
            controller1: Controller::new(),
            controller2: Controller::new(),
            ram: [0; 0x2000],
        }
    }
pub fn with_cart ( cart : Cart ) -> Self { let mapper = Mapper :: with_cart ( cart ) ; MemoryBus { mapper , apu : APUState :: new ( ) , cpu : CPUState :: new ( ) , ppu : PPUState :: new ( ) , controller1 : Controller :: new ( ) , controller2 : Controller :: new ( ) , ram : [ 0 ; 0x2000 ] , } }
Creates a memory bus from a c
Creates a memory bus from a c
cart
Cart
cart
Cart