mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
6840ptm.c: Fixed mode check in set_gate() [J Wallace]
This commit is contained in:
parent
6605e70546
commit
aa36ff470a
@ -644,7 +644,7 @@ void ptm6840_device::timeout(int idx)
|
|||||||
|
|
||||||
void ptm6840_device::set_gate(int idx, int state)
|
void ptm6840_device::set_gate(int idx, int state)
|
||||||
{
|
{
|
||||||
if ( (m_mode[idx] == 0) || (m_mode[idx] == 2) || (m_mode[0] == 4) || (m_mode[idx] == 6) )
|
if ((m_mode[idx] & 1) == 0)
|
||||||
{
|
{
|
||||||
if (state == 0 && m_gate[idx])
|
if (state == 0 && m_gate[idx])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user