public Ram() { bool[] test = new bool[] { false, false, false, false }; for (int n = 0; n < 16; n++) { ram[test.Select(i => i).ToArray()] = new bool[] { false, false, false, false, false, false, false, false }; test = ProgramCounter.AddOne(test, 3); } }
private bool[] twosComplement(bool[] inp) { bool[] output = inp.Select(n => !(n)).ToArray(); return(ProgramCounter.AddOne(output, 7)); }