mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Cosmos.Core;
|
|
|
|
namespace Cosmos.Core.IOGroup {
|
|
/// <summary>
|
|
/// IOGroup text screen.
|
|
/// </summary>
|
|
public class TextScreen : IOGroup {
|
|
/// <summary>
|
|
/// Memory.
|
|
/// </summary>
|
|
public readonly MemoryBlock Memory = new MemoryBlock(0xB8000, 80 * 25 * 2);
|
|
// These should probably move to a VGA class later, or this class should be remade into a VGA class
|
|
/// <summary>
|
|
/// Misc. output.
|
|
/// </summary>
|
|
public readonly IOPort MiscOutput = new IOPort(0x03C2);
|
|
/// <summary>
|
|
/// First IOPort index.
|
|
/// </summary>
|
|
public readonly IOPort Idx1 = new IOPort(0x03C4);
|
|
/// <summary>
|
|
/// First IOPort data.
|
|
/// </summary>
|
|
public readonly IOPort Data1 = new IOPort(0x03C5);
|
|
/// <summary>
|
|
/// Second IOPort index.
|
|
/// </summary>
|
|
public readonly IOPort Idx2 = new IOPort(0x03CE);
|
|
/// <summary>
|
|
/// Second IOPort data.
|
|
/// </summary>
|
|
public readonly IOPort Data2 = new IOPort(0x03CF);
|
|
/// <summary>
|
|
/// Third IOPort index.
|
|
/// </summary>
|
|
public readonly IOPort Idx3 = new IOPort(0x03D4);
|
|
/// <summary>
|
|
/// Third IOPort data.
|
|
/// </summary>
|
|
public readonly IOPort Data3 = new IOPort(0x03D5);
|
|
}
|
|
}
|