Ejemplo n.º 1
0
        private void Init8259()
        {
            _i8259 = new i8259(AddInterrupt);

            // i8259 input devices (PIC)
            _eu.AddInputDevice(0x20, new InputDevice(_i8259.ReadPicCommand, _i8259.ReadPicCommand16));
            _eu.AddInputDevice(0x21, new InputDevice(_i8259.ReadPicData, _i8259.ReadPicData16));

            // i8259 output devices (PIC)
            _eu.AddOutputDevice(0x20, new OutputDevice(_i8259.WritePicCommand, _i8259.WritePicCommand));
            _eu.AddOutputDevice(0x21, new OutputDevice(_i8259.WritePicData, _i8259.WritePicData));
        }
Ejemplo n.º 2
0
        private void Init8259()
        {
            _i8259 = new i8259(AddInterrupt);

            // i8259 input devices (PIC)
            _eu.AddInputDevice(0x20, new InputDevice(_i8259.ReadPicCommand, _i8259.ReadPicCommand16));
            _eu.AddInputDevice(0x21, new InputDevice(_i8259.ReadPicData, _i8259.ReadPicData16));

            // i8259 output devices (PIC)
            _eu.AddOutputDevice(0x20, new OutputDevice(_i8259.WritePicCommand, _i8259.WritePicCommand));
            _eu.AddOutputDevice(0x21, new OutputDevice(_i8259.WritePicData, _i8259.WritePicData));
        }