mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
17 lines
480 B
C#
17 lines
480 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Core.IOGroup {
|
|
public class PIC : IOGroup {
|
|
public readonly IOPort Cmd = new IOPort(0x20);
|
|
public readonly IOPort Data = new IOPort(0x21);
|
|
|
|
internal PIC(bool aSlave) {
|
|
byte aBase = (byte)(aSlave ? 0xA0 : 0x20);
|
|
Cmd = new IOPort(aBase);
|
|
Data = new IOPort((byte)(aBase + 1));
|
|
}
|
|
}
|
|
}
|