2018-06-14 10:31:09 +00:00
|
|
|
|
|
2017-11-23 17:26:15 +00:00
|
|
|
|
namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The abstract class that all emulated models will inherit from
|
|
|
|
|
/// * Port Access *
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract partial class SpectrumBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The last OUT data that was sent to the ULA
|
|
|
|
|
/// </summary>
|
|
|
|
|
protected byte LastULAOutByte;
|
2018-03-12 12:00:17 +00:00
|
|
|
|
public byte LASTULAOutByte
|
|
|
|
|
{
|
|
|
|
|
get { return LastULAOutByte; }
|
|
|
|
|
set { LastULAOutByte = value; }
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-10 09:05:49 +00:00
|
|
|
|
public byte Last7ffd;
|
|
|
|
|
public byte LastFe;
|
|
|
|
|
public byte Last1ffd;
|
|
|
|
|
|
2017-11-23 17:26:15 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reads a byte of data from a specified port address
|
|
|
|
|
/// </summary>
|
2017-12-05 10:02:57 +00:00
|
|
|
|
public abstract byte ReadPort(ushort port);
|
2017-11-23 17:26:15 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes a byte of data to a specified port address
|
|
|
|
|
/// </summary>
|
2017-12-05 10:02:57 +00:00
|
|
|
|
public abstract void WritePort(ushort port, byte value);
|
2017-11-23 17:26:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|