public CPU(InterruptManager iM, ReadFromMMUDelegate mmuRead, WriteToMMUDelegate mmuWrite, UpdateTimeDelegate sysTimeUpdate) { interruptManager = iM; ReadGB = mmuRead; WriteGB = mmuWrite; UpdateTimeGB = sysTimeUpdate; InitializeDefaultValues(); }
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; }
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; }
public Video(InterruptManager iM, IRenderable newScreen) { screen = newScreen; interruptManager = iM; lyCounter = new LYCounter(); lyCounter.LineChanged += new LYCounter.OnLineChangedEventHandler(OnLYLineChange); lyCounter.OnMode3 += new LYCounter.OnMode3EventHandler(Mode3Handler); ResetLCD(); InitializeVideoMemory(); InitializePalettes(); InitializeLCD(); InMode3 = false; }
public TimerCounter(InterruptManager iM) { interruptManager = iM; }
public GBTimer(InterruptManager iM) { CycleCounter = 0; divider = new Divider(); timerCounter = new TimerCounter(iM); }
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); }
public GBInput(InterruptManager iM, IInputHandler handler) { interruptManager = iM; inputHandler = handler; keyState = new KeyState(); }