mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-06-12 16:29:38 +00:00
365e5723c1
--HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4050811
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
namespace Jellyfish.Virtu
|
|
{
|
|
public class PeripheralCard : MachineComponent
|
|
{
|
|
public PeripheralCard(Machine machine) :
|
|
base(machine)
|
|
{
|
|
}
|
|
|
|
public virtual int ReadIoRegionC0C0(int address)
|
|
{
|
|
// read Device Select' address $C0nX; n = slot number + 8
|
|
return ReadFloatingBus();
|
|
}
|
|
|
|
public virtual int ReadIoRegionC1C7(int address)
|
|
{
|
|
// read I/O Select' address $CsXX; s = slot number
|
|
return ReadFloatingBus();
|
|
}
|
|
|
|
public virtual int ReadIoRegionC8CF(int address)
|
|
{
|
|
// read I/O Strobe' address $C800-$CFFF
|
|
return ReadFloatingBus();
|
|
}
|
|
|
|
public virtual void WriteIoRegionC0C0(int address, int data)
|
|
{
|
|
// write Device Select' address $C0nX; n = slot number + 8
|
|
}
|
|
|
|
public virtual void WriteIoRegionC1C7(int address, int data)
|
|
{
|
|
// write I/O Select' address $CsXX; s = slot number
|
|
}
|
|
|
|
public virtual void WriteIoRegionC8CF(int address, int data)
|
|
{
|
|
// write I/O Strobe' address $C800-$CFFF
|
|
}
|
|
|
|
protected int ReadFloatingBus()
|
|
{
|
|
return Machine.Video.ReadFloatingBus();
|
|
}
|
|
}
|
|
}
|