From 6b076025fc3ddf8ad7f3e3da809cf661c326c0ff Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Wed, 30 Dec 2020 12:20:08 +0700 Subject: [PATCH] am9517a: simplify software request handling --- src/devices/machine/am9517a.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/devices/machine/am9517a.cpp b/src/devices/machine/am9517a.cpp index a0015161b1e..4e99e678f20 100644 --- a/src/devices/machine/am9517a.cpp +++ b/src/devices/machine/am9517a.cpp @@ -853,15 +853,11 @@ void am9517a_device::write(offs_t offset, uint8_t data) if (BIT(data, 2)) { - m_request |= (1 << (channel + 4)); - if (COMMAND_MEM_TO_MEM) - { - m_request |= (1 << channel); - } + m_request |= (1 << channel); } else { - m_request &= ~(1 << (channel + 4)); + m_request &= ~(1 << channel); } LOG("AM9517A Request Register: %01x\n", m_request);