Intellivision track lag
This commit is contained in:
parent
3f9ec16c2d
commit
fc96fe2cba
|
@ -35,6 +35,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
|
||||
_cpu.PendingCycles = (14934 - 3791 + _cpu.GetPendingCycles());
|
||||
_stic.Sr1 = true;
|
||||
islag = true;
|
||||
|
||||
bool active_display = _stic.active_display;
|
||||
|
||||
|
@ -108,9 +109,13 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
}
|
||||
_stic.in_vb_2 = false;
|
||||
|
||||
if (islag)
|
||||
lagcount++;
|
||||
}
|
||||
|
||||
private int _frame;
|
||||
public bool islag;
|
||||
public int lagcount;
|
||||
private int stic_row;
|
||||
public int Frame { get { return _frame; } }
|
||||
|
||||
|
@ -127,6 +132,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
public void ResetCounters()
|
||||
{
|
||||
_frame = 0;
|
||||
lagcount = 0;
|
||||
}
|
||||
|
||||
public CoreComm CoreComm { get; private set; }
|
||||
|
|
|
@ -57,8 +57,8 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
ser.Sync("ExecutiveRom", ref ExecutiveRom, false);
|
||||
ser.Sync("GraphicsRom", ref GraphicsRom, false);
|
||||
ser.Sync("GraphicsRam", ref GraphicsRam, false);
|
||||
|
||||
|
||||
ser.Sync("islag", ref islag);
|
||||
ser.Sync("lagcount", ref lagcount);
|
||||
|
||||
_cpu.SyncState(ser);
|
||||
_stic.SyncState(ser);
|
||||
|
|
|
@ -43,12 +43,12 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
//controllers
|
||||
if (addr==0x01FE)
|
||||
{
|
||||
//Console.WriteLine("reading controller");
|
||||
return _psg.Register[14];
|
||||
islag = false;
|
||||
return _psg.Register[14];
|
||||
}
|
||||
if (addr == 0x01FF)
|
||||
{
|
||||
//Console.WriteLine("reading controller");
|
||||
islag = false;
|
||||
return _psg.Register[15];
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -73,14 +73,14 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
|
||||
public int LagCount
|
||||
{
|
||||
get {return 0;}
|
||||
get {return lagcount;}
|
||||
|
||||
set{}
|
||||
}
|
||||
|
||||
public bool IsLagFrame
|
||||
{
|
||||
get {return false;}
|
||||
get {return islag;}
|
||||
|
||||
set {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue