public static void ClearBits(MemoryBankController memory, ushort address, params byte[] bits) { foreach (var bit in bits) { memory[address] &= (byte)~(1 << bit); } }
public static bool IsBitSet(MemoryBankController memory, ushort address, byte bit) { return (memory[address] & (1 << bit)) == (1 << bit); }
public Display(MemoryBankController memory) { Memory = memory; ScreenData = new byte[Width * Height]; }