示例#1
0
文件: MMU.cs 项目: Silenthal/gbemu
 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;
 }
示例#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);
 }