summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/upd7759.c
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-10-09 23:39:27 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-10-09 23:39:27 +0000
commit1cdd1948ee33363212150c70ac865dc97b5bfce7 (patch)
tree05692ac82ea5d062d6a8a37a2a45cacd7e3e164c /src/emu/sound/upd7759.c
parente9aea92d1a292d6488ceb5bb654b5adae3f3c5a6 (diff)
added 315-5296 device
Diffstat (limited to 'src/emu/sound/upd7759.c')
-rw-r--r--src/emu/sound/upd7759.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/sound/upd7759.c b/src/emu/sound/upd7759.c
index 72157e51f73..942c1aad28e 100644
--- a/src/emu/sound/upd7759.c
+++ b/src/emu/sound/upd7759.c
@@ -736,11 +736,11 @@ void upd775x_device::postload()
*************************************************************/
-void upd775x_device::reset_w(UINT8 data)
+WRITE_LINE_MEMBER( upd775x_device::reset_w )
{
/* update the reset value */
UINT8 oldreset = m_reset;
- m_reset = (data != 0);
+ m_reset = (state != 0);
/* update the stream first */
m_channel->update();
@@ -750,11 +750,11 @@ void upd775x_device::reset_w(UINT8 data)
device_reset();
}
-void upd7759_device::start_w(UINT8 data)
+WRITE_LINE_MEMBER( upd7759_device::start_w )
{
/* update the start value */
UINT8 oldstart = m_start;
- m_start = (data != 0);
+ m_start = (state != 0);
logerror("upd7759_start_w: %d->%d\n", oldstart, m_start);
@@ -772,11 +772,11 @@ void upd7759_device::start_w(UINT8 data)
}
}
-void upd7756_device::start_w(UINT8 data)
+WRITE_LINE_MEMBER( upd7756_device::start_w )
{
/* update the start value */
UINT8 oldstart = m_start;
- m_start = (data != 0);
+ m_start = (state != 0);
logerror("upd7759_start_w: %d->%d\n", oldstart, m_start);
@@ -798,7 +798,7 @@ WRITE8_MEMBER( upd775x_device::port_w )
}
-int upd775x_device::busy_r()
+READ_LINE_MEMBER( upd775x_device::busy_r )
{
/* return /BUSY */
return (m_state == STATE_IDLE);