mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +03:00
Improved PIA6821 interface. (no whatsnew)
This commit is contained in:
parent
6daac9bee5
commit
b4e69db3c3
@ -607,7 +607,7 @@ static WRITE_LINE_DEVICE_HANDLER( zwackery_pia_irq )
|
|||||||
static TIMER_CALLBACK( zwackery_493_off_callback )
|
static TIMER_CALLBACK( zwackery_493_off_callback )
|
||||||
{
|
{
|
||||||
running_device *pia = machine->device("pia0");
|
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");
|
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);
|
timer_set(machine, machine->primary_screen->scan_period(), NULL, 0, zwackery_493_off_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ MACHINE_START( qixmcu )
|
|||||||
WRITE_LINE_DEVICE_HANDLER( qix_vsync_changed )
|
WRITE_LINE_DEVICE_HANDLER( qix_vsync_changed )
|
||||||
{
|
{
|
||||||
running_device *pia = device->machine->device("sndpia0");
|
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);
|
sn76496_w(device->machine->device("sn1"), 0, data);
|
||||||
|
|
||||||
/* clock the ready line going back into CB1 */
|
/* clock the ready line going back into CB1 */
|
||||||
pia6821_cb1_w(device, 0, 0);
|
pia6821_cb1_w(device, 0);
|
||||||
pia6821_cb1_w(device, 0, 1);
|
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);
|
sn76496_w(device->machine->device("sn2"), 0, data);
|
||||||
|
|
||||||
/* clock the ready line going back into CB1 */
|
/* clock the ready line going back into CB1 */
|
||||||
pia6821_cb1_w(device, 0, 0);
|
pia6821_cb1_w(device, 0);
|
||||||
pia6821_cb1_w(device, 0, 1);
|
pia6821_cb1_w(device, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user