public GameBoyGpu(GameBoy device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; VideoOutput = new EmptyVideoOutput(); }
public GameBoyGpu(GameBoy device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; VideoOutput = new EmptyVideoOutput(); _bgPaletteMemory.AsSpan().Fill(0xFF); _vram = new byte[device.GbcMode ? 0x4000 : 0x2000]; }
public GameBoyGpu(GameBoy device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; VideoOutput = new EmptyVideoOutput(); Utilities.Memset(_bgPaletteMemory, 0xFF, _bgPaletteMemory.Length); _vram = new byte[device.GbcMode ? 0x4000 : 0x2000]; }