Пример #1
0
        public void Clock_PosEdgeCycleT1_SignalsCorrect()
        {
            var cpu = new CpuZ80();

            cpu.Clock(CycleNames.T1, DigitalLevel.PosEdge);

            // active
            cpu.MachineCycle1.Level.Should().Be(DigitalLevel.Low);

            // inactive
            cpu.Refresh.Level.Should().Be(DigitalLevel.High);
            cpu.IoRequest.Level.Should().Be(DigitalLevel.High);
            cpu.Write.Level.Should().Be(DigitalLevel.High);

            // bus
            cpu.Address.Value.Should().Be(new BusData16(0));
        }