public Chip8Cpu(IDisplay display, IRandomizer randomizer, IKeyboard keyboard, IBcdConverter bcdConverter, IInstructionDecoder instructionDecoder, ITimerClock timerClock) { _display = display; _randomizer = randomizer; _keyboard = keyboard; _bcdConverter = bcdConverter; _instructionDecoder = instructionDecoder; _timerClock = timerClock; State = new CpuState(); }
public void SetUp() { _cpuState = new CpuState(); }
private void AssertHexadecimalDigit(byte[] digit, int memoryLocation) { var state = new CpuState(); for (var i = 0; i < digit.Length; i++) { var offset = (short)(memoryLocation + i); state.Memory[offset].Should().Be(digit[i]); } }