Previous 15994 Revisions Next

r6757 Friday 25th December, 2009 at 15:51:03 UTC by Miodrag Milanović
[MAC] Fixed timer issue
[src/mess/drivers]mac.c
[src/mess/includes]mac.h
[src/mess/machine]mac.c

src/mess/includes/mac.h
r6756r6757
9090extern const via6522_interface mac_via6522_adb_intf;
9191
9292MACHINE_START( macscsi );
93MACHINE_START( mac );
9394MACHINE_RESET( mac );
9495
9596DRIVER_INIT(mac128k512k);
src/mess/machine/mac.c
r6756r6757
25302530 * Main
25312531 * *************************************************************************/
25322532
2533MACHINE_START( mac )
2534{
2535   mac_state *mac = machine->driver_data;
2536   if (has_adb(mac))
2537   {
2538      mac_adb_timer = timer_alloc(machine, mac_adb_tick, NULL);
2539      timer_adjust_oneshot(mac_adb_timer, attotime_never, 0);
2540   }
2541   mac_scanline_timer = timer_alloc(machine, mac_scanline_tick, NULL);
2542   timer_adjust_oneshot(mac_scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), 0);   
2543}
25332544MACHINE_RESET(mac)
25342545{
25352546   mac_state *mac = machine->driver_data;
r6756r6757
25642575   if (has_adb(mac))
25652576   {
25662577      adb_reset(mac);
2567
2568      mac_adb_timer = timer_alloc(machine, mac_adb_tick, NULL);
2569      timer_adjust_oneshot(mac_adb_timer, attotime_never, 0);
25702578   }
25712579
25722580   if ((mac->mac_model == MODEL_MAC_SE) || (mac->mac_model == MODEL_MAC_CLASSIC))
r6756r6757
25812589   mac->via2_ca1 = 0;
25822590   mac->mac_nubus_irq_state = 0xff;
25832591
2584   mac_scanline_timer = timer_alloc(machine, mac_scanline_tick, NULL);
2585   timer_adjust_oneshot(mac_scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), 0);
2586
25872592   debug_cpu_set_dasm_override(cputag_get_cpu(machine, "maincpu"), CPU_DISASSEMBLE_NAME(mac_dasm_override));
25882593}
25892594
r6756r6757
27262731
27272732MACHINE_START( macscsi )
27282733{
2734   MACHINE_START_CALL(mac);
2735   
27292736   ncr5380_init(machine, &macplus_5380intf);
27302737
27312738   add_exit_callback(machine, macscsi_exit);
src/mess/drivers/mac.c
r6756r6757
655655   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(1260))
656656   MDRV_QUANTUM_TIME(HZ(60))
657657
658   MDRV_MACHINE_START( mac )
658659   MDRV_MACHINE_RESET( mac )
659660
660661    /* video hardware */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team