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