2012-11-28 03:30:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
|
|
|
|
{
|
|
|
|
|
public class UserPort
|
|
|
|
|
{
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public Func<bool> ReadCounter1;
|
|
|
|
|
public Func<bool> ReadCounter2;
|
|
|
|
|
public Func<bool> ReadHandshake;
|
|
|
|
|
public Func<bool> ReadSerial1;
|
|
|
|
|
public Func<bool> ReadSerial2;
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
|
|
|
|
public UserPort()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public void HardReset()
|
2012-11-28 03:30:59 +00:00
|
|
|
|
{
|
2013-08-14 05:05:17 +00:00
|
|
|
|
// note: this will not disconnect any attached media
|
2012-11-28 03:30:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadAtn()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadCounter1Buffer()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadCounter2Buffer()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public byte ReadData()
|
|
|
|
|
{
|
|
|
|
|
return 0xFF;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadFlag2()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadPA2()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadReset()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadSerial1Buffer()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public bool ReadSerial2Buffer()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2013-08-19 03:42:40 +00:00
|
|
|
|
|
|
|
|
|
public void SyncState(Serializer ser)
|
|
|
|
|
{
|
|
|
|
|
Sync.SyncObject(ser, this);
|
|
|
|
|
}
|
2013-08-14 05:05:17 +00:00
|
|
|
|
}
|
2012-11-28 03:30:59 +00:00
|
|
|
|
}
|