Previous 15994 Revisions Next

r6636 Tuesday 15th December, 2009 at 09:28:15 UTC by Barry Rodewald
[FMTOWNS] Made vsync IRQ go low at the end of the vblank period. This gets Raiden Trad to start doing stuff.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r6635r6636
18201820
18211821INPUT_PORTS_END
18221822
1823static TIMER_CALLBACK( towns_vblank_end )
1824{
1825   // here we'll clear the vsync signal, I presume it goes low on it's own eventually
1826   pic8259_set_irq_line(ptr,3,0);  // IRQ11 = VSync
1827}
1828
18231829static INTERRUPT_GEN( towns_vsync_irq )
18241830{
18251831   const device_config* dev = devtag_get_device(device->machine,"pic8259_slave");
18261832   pic8259_set_irq_line(dev,3,1);  // IRQ11 = VSync
1833   timer_set(device->machine,video_screen_get_time_until_vblank_end(device->machine->primary_screen),(void*)dev,0,towns_vblank_end);
18271834}
18281835
18291836static DRIVER_INIT( towns )
r6635r6636
19891996   MDRV_SOUND_CONFIG(ym3438_intf)
19901997   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
19911998   MDRV_SOUND_ADD("pcm", RF5C68, 2150000)  // actual clock speed unknown
1992//  MDRV_SOUND_CONFIG(rf5c68_interface)
19931999   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
19942000   MDRV_SOUND_ADD("cdda",CDDA,0)
19952001   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team