diff --git a/source/Cosmos.Core/IOPort.cs b/source/Cosmos.Core/IOPort.cs index 3ff7f1dc3..68159dfea 100644 --- a/source/Cosmos.Core/IOPort.cs +++ b/source/Cosmos.Core/IOPort.cs @@ -89,6 +89,9 @@ namespace Cosmos.Core { } + /// + /// Wait for the previous IO read/write to complete. + /// static public void Wait() { // Write to an unused port. This assures whatever we were waiting on for a previous @@ -100,18 +103,27 @@ namespace Cosmos.Core Write8(0x80, 0x22); } + /// + /// Get and set Byte value in IO port. + /// public byte Byte { get => Read8(Port); set => Write8(Port, value); } + /// + /// Get and set Word value in IO port. + /// public ushort Word { get => Read16(Port); set => Write16(Port, value); } + /// + /// Get and set DWord value in IO port. + /// public uint DWord { get => Read32(Port);