public void Setup()
        {
            Fixture = new Fixture();

            Sut = new Z80ProcessorForTests();
            Sut.SetInstructionExecutionContextToNonNull();

            InterruptSource1 = new InterruptSourceForTests();
            InterruptSource2 = new InterruptSourceForTests();
        }
Example #2
0
        public void Setup()
        {
            Fixture = new Fixture();

            Sut = new Z80ProcessorForTests();
            Sut.SetInstructionExecutionContextToNonNull();

            Memory         = new Mock <IMemory>();
            Sut.Memory     = Memory.Object;
            Ports          = new Mock <IMemory>();
            Sut.PortsSpace = Ports.Object;
        }
Example #3
0
        public void Setup()
        {
            Fixture = new Fixture();

            Sut = new Z80ProcessorForTests();
            Sut.AutoStopOnRetWithStackEmpty = true;
            Sut.Memory[0] = RET_opcode;

            clockSyncHelper = new Mock <IClockSynchronizer>();

            Sut.InstructionExecutor = new FakeInstructionExecutor()
            {
                ProcessorAgent = Sut
            };
            Sut.ClockSynchronizer = clockSyncHelper.Object;
        }
        public void Setup()
        {
            Fixture = new Fixture();

            Sut = new Z80ProcessorForTests();
        }