Esempio n. 1
0
 public MMU(InterruptManager iM,
     Cart iCart,
     GBInput iInput,
     GBAudio iAudio,
     GBTimer iTimer,
     Serial iSerial,
     Video iVideo,
     WRAM iWram,
     HRAM iHram)
 {
     interruptManager = iM;
     cart = iCart;
     input = iInput;
     timer = iTimer;
     LCD = iVideo;
     serial = iSerial;
     audio = iAudio;
     wram = iWram;
     hram = iHram;
 }
Esempio n. 2
0
 public void LoadFile(byte[] loadFile)
 {
     interruptManager = new InterruptManager();
     timer = new GBTimer(interruptManager);
     serial = new Serial();
     audio = new GBAudio();
     wram = new WRAM();
     hram = new HRAM();
     video = new Video(interruptManager, screen);
     cart = CartLoader.LoadCart(loadFile);
     input = new GBInput(interruptManager, inputHandler);
     mmu = new MMU(interruptManager, cart, input, audio, timer, serial, video, wram, hram);
     cpu = new CPU(interruptManager, mmu.Read, mmu.Write, mmu.UpdateTime);
 }