src/mess/machine/mac.c
| r6756 | r6757 | |
| 2530 | 2530 | * Main |
| 2531 | 2531 | * *************************************************************************/ |
| 2532 | 2532 | |
| 2533 | MACHINE_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 | } |
| 2533 | 2544 | MACHINE_RESET(mac) |
| 2534 | 2545 | { |
| 2535 | 2546 | mac_state *mac = machine->driver_data; |
| r6756 | r6757 | |
| 2564 | 2575 | if (has_adb(mac)) |
| 2565 | 2576 | { |
| 2566 | 2577 | 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); |
| 2570 | 2578 | } |
| 2571 | 2579 | |
| 2572 | 2580 | if ((mac->mac_model == MODEL_MAC_SE) || (mac->mac_model == MODEL_MAC_CLASSIC)) |
| r6756 | r6757 | |
| 2581 | 2589 | mac->via2_ca1 = 0; |
| 2582 | 2590 | mac->mac_nubus_irq_state = 0xff; |
| 2583 | 2591 | |
| 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 | | |
| 2587 | 2592 | debug_cpu_set_dasm_override(cputag_get_cpu(machine, "maincpu"), CPU_DISASSEMBLE_NAME(mac_dasm_override)); |
| 2588 | 2593 | } |
| 2589 | 2594 | |
| r6756 | r6757 | |
| 2726 | 2731 | |
| 2727 | 2732 | MACHINE_START( macscsi ) |
| 2728 | 2733 | { |
| 2734 | MACHINE_START_CALL(mac); |
| 2735 | |
| 2729 | 2736 | ncr5380_init(machine, &macplus_5380intf); |
| 2730 | 2737 | |
| 2731 | 2738 | add_exit_callback(machine, macscsi_exit); |