예제 #1
0
        public Intel8259(Intel8259 slave)
        {
            _readmode = (byte)OCW3_READ_IRR;
            _slave    = slave;

            for (var i = 0; i < 8; i++)
            {
                _requestFuncs[i] = new List <Func <bool> >();
            }
        }
예제 #2
0
        public Intel8253(Intel8259 pic)
        {
            _pic = pic;
            _us  = 0;

            //for(var i = 0; i < 3; i++) _timerHack.Enqueue(1);
            //_timerHack.Enqueue(2);
            //for(var i = 0; i < 25; i++) _timerHack.Enqueue(0);

            _pic.RegisterInterrupt(2, () => (timerOne || timerZero));
            //_pic.RegisterInterrupt(2, () => (CountZero.Output && CountZero.Active) || (CountTwo.Output && CountTwo.Active));
        }