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

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

            InterruptSource1 = new InterruptSourceForTests();
            InterruptSource2 = new InterruptSourceForTests();
        }
Exemplo n.º 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;
        }
Exemplo n.º 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();
        }