mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +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 )
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user