public Gameboy(ROM romToPlay, PictureBox display) { rom = romToPlay; memory = new AddressSpace(romToPlay); cpu = new CPU(memory, romToPlay, clock); lcd = new LCD(display); lcdController = new LCDController(lcd, memory); }
public LCDController(LCD display, AddressSpace memory) { this.display = display; mem = memory; // perform vBlank at 59.73 Hz or this many Cycles vBlankCycleTiming = (int)(Gameboy.clockTimingInHz / 59.73f); testFrame = display.buildRandomSolidColorImage(); fpsStopWatch.Start(); }