mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 18:21:20 +00:00
15 lines
425 B
C#
15 lines
425 B
C#
namespace Cosmos.Core.Common.IOGroup
|
|
{
|
|
public class PIC : Core.IOGroup.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));
|
|
}
|
|
}
|
|
}
|