Esempio n. 1
0
        public void CpuFailsOnHoldEventTimeout()
        {
            using (var _ = mem.Load(0x8000))
            {
                _
                .NOP("loop")
                .JMP_ABSOLUTE("loop");
            }

            _cpu.MaxEventDuration = TimeSpan.FromSeconds(2);
            _cpuHoldEvent.Reset();
            _cpuStepEvent.Set();

            try
            {
                _cpu.Reset(TimeSpan.FromSeconds(30));
            }
            catch (TimeoutException)
            {
                Assert.Pass();
            }
            Assert.Fail();
        }
Esempio n. 2
0
 public void Go()
 {
     _debuggerSyncEvent.Set();
     _debuggerStepEvent.Set();
 }