From b4e69db3c34592d019a7283d7caa30ba0355ef0a Mon Sep 17 00:00:00 2001 From: Curt Coder Date: Fri, 16 Jul 2010 12:01:50 +0000 Subject: [PATCH] Improved PIA6821 interface. (no whatsnew) --- src/mame/machine/mcr.c | 4 ++-- src/mame/machine/qix.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mame/machine/mcr.c b/src/mame/machine/mcr.c index fc8922f0843..9f986359ace 100644 --- a/src/mame/machine/mcr.c +++ b/src/mame/machine/mcr.c @@ -607,7 +607,7 @@ static WRITE_LINE_DEVICE_HANDLER( zwackery_pia_irq ) static TIMER_CALLBACK( zwackery_493_off_callback ) { running_device *pia = machine->device("pia0"); - pia6821_ca1_w(pia, 0, 0); + pia6821_ca1_w(pia, 0); } @@ -615,7 +615,7 @@ static TIMER_CALLBACK( zwackery_493_callback ) { running_device *pia = machine->device("pia0"); - pia6821_ca1_w(pia, 0, 1); + pia6821_ca1_w(pia, 1); timer_set(machine, machine->primary_screen->scan_period(), NULL, 0, zwackery_493_off_callback); } diff --git a/src/mame/machine/qix.c b/src/mame/machine/qix.c index 9a819708b9b..6f62fa86b2b 100644 --- a/src/mame/machine/qix.c +++ b/src/mame/machine/qix.c @@ -253,7 +253,7 @@ MACHINE_START( qixmcu ) WRITE_LINE_DEVICE_HANDLER( qix_vsync_changed ) { running_device *pia = device->machine->device("sndpia0"); - pia6821_cb1_w(pia, 0, state); + pia6821_cb1_w(pia, state); } @@ -511,8 +511,8 @@ static WRITE8_DEVICE_HANDLER( slither_76489_0_w ) sn76496_w(device->machine->device("sn1"), 0, data); /* clock the ready line going back into CB1 */ - pia6821_cb1_w(device, 0, 0); - pia6821_cb1_w(device, 0, 1); + pia6821_cb1_w(device, 0); + pia6821_cb1_w(device, 1); } @@ -522,8 +522,8 @@ static WRITE8_DEVICE_HANDLER( slither_76489_1_w ) sn76496_w(device->machine->device("sn2"), 0, data); /* clock the ready line going back into CB1 */ - pia6821_cb1_w(device, 0, 0); - pia6821_cb1_w(device, 0, 1); + pia6821_cb1_w(device, 0); + pia6821_cb1_w(device, 1); }