Previous 15994 Revisions Next

r6818 Tuesday 29th December, 2009 at 18:58:55 UTC by Wilbert Pol
[CAT] Moved timer_alloc to the MACHINE_START phase.
[src/mess/drivers]cat.c

src/mess/drivers/cat.c
r6817r6818
1616static UINT8 video_enable;
1717static UINT16 pr_cont;
1818static UINT8 keyboard_line;
19static emu_timer *keyboard_timer;
1920
2021static WRITE16_HANDLER( cat_video_status_w )
2122{
r6817r6818
250251   return M68K_INT_ACK_AUTOVECTOR;
251252}
252253
254static MACHINE_START(cat)
255{
256   keyboard_timer = timer_alloc(machine, keyboard_callback, NULL);
257}
253258static MACHINE_RESET(cat)
254259{
255260   cpu_set_irq_callback(cputag_get_cpu(machine, "maincpu"), cat_int_ack);
256   timer_pulse(machine, ATTOTIME_IN_HZ(120), NULL, 0, keyboard_callback);
261   timer_adjust_periodic(keyboard_timer, attotime_zero, 0, ATTOTIME_IN_HZ(120));
257262}
258263
259264static VIDEO_START( cat )
r6817r6818
295300static MACHINE_RESET(swyft)
296301{
297302   timer_set(machine, ATTOTIME_IN_USEC(10), NULL, 0, swyft_reset);
298
299303}
300304
301305static VIDEO_START( swyft )
r6817r6818
376380   MDRV_CPU_ADD("maincpu",M68000, XTAL_5MHz)
377381   MDRV_CPU_PROGRAM_MAP(cat_mem)
378382
383   MDRV_MACHINE_START(cat)
379384   MDRV_MACHINE_RESET(cat)
380385
381386   /* video hardware */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team