A7800Hawk: Fix Lag detection
This commit is contained in:
parent
ab817f143d
commit
052c35cd35
|
@ -98,6 +98,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
if (Core.m6532._outputB == 0 && (Core.m6532._ddRb & 0x10)==0x10)
|
||||
{
|
||||
Core._islag = false;
|
||||
return (byte)(Core.p1_fire_2x & 0x80);
|
||||
}
|
||||
else
|
||||
|
@ -110,6 +111,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
if (Core.m6532._outputB == 0 && (Core.m6532._ddRb & 0x10) == 0x10)
|
||||
{
|
||||
Core._islag = false;
|
||||
return (byte)((Core.p1_fire_2x & 0x40)<<1);
|
||||
}
|
||||
else
|
||||
|
@ -122,6 +124,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
if (Core.m6532._outputB == 0 && (Core.m6532._ddRb & 0x04) == 0x04)
|
||||
{
|
||||
Core._islag = false;
|
||||
return (byte)(Core.p2_fire_2x & 0x80);
|
||||
}
|
||||
else
|
||||
|
@ -134,6 +137,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
if (Core.m6532._outputB == 0 && (Core.m6532._ddRb & 0x04) == 0x04)
|
||||
{
|
||||
Core._islag = false;
|
||||
return (byte)((Core.p2_fire_2x & 0x40)<<1);
|
||||
}
|
||||
else
|
||||
|
@ -144,11 +148,13 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
|
||||
if (maskedAddr == 0x0C) // INPT4
|
||||
{
|
||||
Core._islag = false;
|
||||
return Core.p1_fire;
|
||||
}
|
||||
|
||||
if (maskedAddr == 0x0D) // INPT5
|
||||
{
|
||||
Core._islag = false;
|
||||
return Core.p2_fire;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue